You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clang 10 compile issue. [ 32%] Building CXX object src/CMakeFiles/libcataclysm-tiles.dir/loading_ui.cpp.o /home/developer/GitHub/gregoranders/Cataclysm-DDA.source/src/lightmap.cpp:1209:49: error: implicit conversion from 'int' to 'float' changes value from 1056478197 to 1056478208 [-Werror,-Wimplicit-int-float-conversion] u.i = static_cast<long long>( 6051102 * x + 1056478197 ); ~ ^~~~~~~~~~ /home/developer/GitHub/gregoranders/Cataclysm-DDA.source/src/lightmap.cpp:1210:35: error: implicit conversion from 'int' to 'float' changes value from 1056478197 to 1056478208 [-Werror,-Wimplicit-int-float-conversion] v.i = static_cast<long long>( 1056478197 - 6051102 * x ); ^~~~~~~~~~ ~ 2 errors generated. make[2]: *** [src/CMakeFiles/libcataclysm-tiles.dir/build.make:1549: src/CMakeFiles/libcataclysm-tiles.dir/lightmap.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs....
Describe the bug
Clang 10 compile issue.
[ 32%] Building CXX object src/CMakeFiles/libcataclysm-tiles.dir/loading_ui.cpp.o /home/developer/GitHub/gregoranders/Cataclysm-DDA.source/src/lightmap.cpp:1209:49: error: implicit conversion from 'int' to 'float' changes value from 1056478197 to 1056478208 [-Werror,-Wimplicit-int-float-conversion] u.i = static_cast<long long>( 6051102 * x + 1056478197 ); ~ ^~~~~~~~~~ /home/developer/GitHub/gregoranders/Cataclysm-DDA.source/src/lightmap.cpp:1210:35: error: implicit conversion from 'int' to 'float' changes value from 1056478197 to 1056478208 [-Werror,-Wimplicit-int-float-conversion] v.i = static_cast<long long>( 1056478197 - 6051102 * x ); ^~~~~~~~~~ ~ 2 errors generated. make[2]: *** [src/CMakeFiles/libcataclysm-tiles.dir/build.make:1549: src/CMakeFiles/libcataclysm-tiles.dir/lightmap.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs....
Steps To Reproduce
compile with clang 10
Versions and configuration
Commit: f8ba267
clang version 10.0.0 (/var/tmp/portage/sys-devel/clang-10.0.0.9999/work/x/y/clang)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
The text was updated successfully, but these errors were encountered: