Closed klausenbusk closed 7 years ago
I'm also experiencing this issue in master
247fd43
from macOS.
Thanks for all your hard work, Denton!
[ 1%] Building CXX object src-IL/CMakeFiles/IL.dir/src/il_rle.cpp.o
/Users/andrewmcwatters/DevIL/DevIL/src-IL/src/il_rle.cpp:20:45: error: cast from
pointer to smaller type 'ILint' (aka 'int') loses information
const ILint bmp_pad_to_even = (ILint)(1 - ((ILint)q - *DestWidth) % 2);
^~~~~~~~
1 error generated.
make[2]: *** [src-IL/CMakeFiles/IL.dir/src/il_rle.cpp.o] Error 1
make[1]: *** [src-IL/CMakeFiles/IL.dir/all] Error 2
make: *** [all] Error 2
/Users/andrewmcwatters/DevIL/DevIL/src-IL/src/il_rle.cpp:20:45
const ILint bmp_pad_to_even = (ILint)(1 - ((ILint)q - *DestWidth) % 2);
const ILint bmp_pad_to_even = (ILint)(1 - ((ILint)(size_t)q - *DestWidth) % 2);
DevIL successfully compiles.
Thanks, Visual Studio complained about that when compiling 64-bit but just gave a warning. I just committed your change.
Hello
I get the following, when trying to compile DevIL from ArchLinux.
Removing the
q
, seems to fix it, but I'm not sure if that yields other problems?Regards Kristian