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

error: cast from pointer to smaller type 'int' loses information #165

Closed
yurivict opened this issue Mar 13, 2021 · 1 comment
Closed

error: cast from pointer to smaller type 'int' loses information #165

yurivict opened this issue Mar 13, 2021 · 1 comment

Comments

@yurivict
Copy link

yurivict commented Mar 13, 2021

clang-10 fails:

openTSNE/dependencies/annoy/annoymodule.cc:180:12: error: cast from pointer to smaller type 'int' loses information
    return (int) NULL;
           ^~~~~~~~~~
1 error generated.

NULL is nullptr in modern C++ and can't be cast to int.

Version: 0.5.1
OS: FreeBSD 12.2

@pavlin-policar
Copy link
Owner

Please refer to #161.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants