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

Fix comparison of Header.MipLengths #86

Open ryandesign opened 4 years ago

ryandesign commented 4 years ago

Fixes compile warning:

warning: comparison of array 'Header.MipLengths' equal to a null pointer is always false [-Wtautological-pointer-compare]
                                        if (Header.MipOffsets[Mip] == 0 || Header.MipLengths == 0)  // No more mipmaps in the file.
                                                                           ~~~~~~~^~~~~~~~~~    ~