Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUILD] Build fails on 32-bit systems: non-constant-expression cannot be narrowed from type 'qulonglong' (aka 'unsigned long long') to 'quintptr' (aka 'unsigned int') in initializer list #2364

Open
yurivict opened this issue Dec 21, 2024 · 0 comments
Labels
Building/Packaging Compile or install issues (excluding CI) Triage This issue is yet to be triaged

Comments

@yurivict
Copy link

Commit Hash
0.2.0-nightly

Platform
FreeBSD 14.2/i386

Summary
Build failed:

/wrkdirs/usr/ports/multimedia/olive/work/olive-0.2.0-nightly/app/node/project/serializer/serializer210528.cpp:191:51: error: non-constant-expression cannot be narrowed from type 'qulonglong' (aka 'unsigned long long') to 'quintptr' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
  191 |           xml_node_data.block_links.append({node, reader->readElementText().toULongLong()});
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/multimedia/olive/work/olive-0.2.0-nightly/app/node/project/serializer/serializer210528.cpp:191:51: note: insert an explicit cast to silence this issue
  191 |           xml_node_data.block_links.append({node, reader->readElementText().toULongLong()});
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                   static_cast<quintptr>(                 )
/wrkdirs/usr/ports/multimedia/olive/work/olive-0.2.0-nightly/app/node/project/serializer/serializer210528.cpp:228:85: error: non-constant-expression cannot be narrowed from type 'qulonglong' (aka 'unsigned long long') to 'quintptr' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
  228 |           xml_node_data.desired_connections.append({NodeInput(node, param_id, ele), output_node_id.toULongLong(), output_param_id});
      |                                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/multimedia/olive/work/olive-0.2.0-nightly/app/node/project/serializer/serializer210528.cpp:228:85: note: insert an explicit cast to silence this issue
  228 |           xml_node_data.desired_connections.append({NodeInput(node, param_id, ele), output_node_id.toULongLong(), output_param_id});
      |                                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                     static_cast<quintptr>(      )
2 errors generated.

log

@yurivict yurivict added Building/Packaging Compile or install issues (excluding CI) Triage This issue is yet to be triaged labels Dec 21, 2024
@yurivict yurivict changed the title [BUILD] Build failsm on 32-bit systems: non-constant-expression cannot be narrowed from type 'qulonglong' (aka 'unsigned long long') to 'quintptr' (aka 'unsigned int') in initializer list [BUILD] Build fails on 32-bit systems: non-constant-expression cannot be narrowed from type 'qulonglong' (aka 'unsigned long long') to 'quintptr' (aka 'unsigned int') in initializer list Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Building/Packaging Compile or install issues (excluding CI) Triage This issue is yet to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant