--- a/Source/FreeImage/PluginXPM.cpp +++ b/Source/FreeImage/PluginXPM.cpp @@ -198,7 +198,7 @@ FILE_RGBA rgba; str = ReadString(io, handle); - if(!str || (strlen(str) < cpp)) + if(!str || (strlen(str) < (size_t)cpp)) throw "Error reading color strings"; std::string chrs(str,cpp); //create a string for the color chars using the first cpp chars