pavlin-policar / openTSNE

Extensible, parallel implementations of t-SNE
https://opentsne.rtfd.io
BSD 3-Clause "New" or "Revised" License
1.44k stars 158 forks source link

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

Closed yurivict closed 3 years ago

yurivict commented 3 years ago

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 commented 3 years ago

Please refer to https://github.com/pavlin-policar/openTSNE/issues/161.