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

Fails on i386: non-constant-expression cannot be narrowed from type 'unsigned int' to 'npy_intp' (aka 'int') in initializer list #4934

Closed
yurivict opened this issue Jan 22, 2022 · 1 comment
Labels
Milestone

Comments

@yurivict
Copy link

2021.09.4 fails:

/wrkdirs/usr/ports/science/rdkit/work/rdkit-Release_2021_09_4/Code/GraphMol/Fingerprints/Wrap/FingerprintGeneratorWrapper.cpp:237:23: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'npy_intp' (aka 'int') in initializer list [-Wc++11-narrowing]
  npy_intp size[1] = {fp->size()};
                      ^~~~~~~~~~

FreeBSD 13

@yurivict yurivict added the bug label Jan 22, 2022
@greglandrum
Copy link
Member

This is clearly something that should be fixed, but I believe that it's only an error in C++17 and later. The RDKit is using C++14, so this hasn't come up.

greglandrum added a commit to greglandrum/rdkit that referenced this issue Jan 23, 2022
@greglandrum greglandrum added this to the 2021_09_5 milestone Jan 23, 2022
greglandrum added a commit that referenced this issue Mar 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants