DentonW / DevIL

Developer's Image Library (DevIL) is a cross-platform image library utilizing a simple syntax to load, save, convert, manipulate, filter, and display a variety of images with ease. It is highly portable and has been ported to several platforms.
http://openil.sourceforge.net/
GNU Lesser General Public License v2.1
446 stars 137 forks source link

Implicit conversion from 'unsigned int' to 'float' #92

Open tellypresence opened 3 years ago

tellypresence commented 3 years ago

Just noticed this after updating to android NDK r22; here is one of the several occurences that were reported:

DevIL/DevIL/src-IL/src/il_convert.cpp:766:57:
error: implicit conversion from 'unsigned int' to 'float' changes value from 4294967295 to 4294967296 
[-Werror,-Wimplicit-const-int-float-conversion]

Not a show stopper as this is easy to downgrade to warning, but would be nice to deal with it in a future modernization sprint