r23780 by jghali - Fix signed/unsigned comparison warning

scribus-commit scribus-commit at lists.scribus.net
Mon May 11 22:15:35 UTC 2020


Author: jghali
Date: Mon May 11 22:15:35 2020
New Revision: 23780

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23780
Log:
Fix signed/unsigned comparison warning

Modified:
    trunk/Scribus/scribus/colormgmt/sclcms2colorprofileimpl.cpp

Modified: trunk/Scribus/scribus/colormgmt/sclcms2colorprofileimpl.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23780&path=/trunk/Scribus/scribus/colormgmt/sclcms2colorprofileimpl.cpp
==============================================================================
--- trunk/Scribus/scribus/colormgmt/sclcms2colorprofileimpl.cpp	(original)
+++ trunk/Scribus/scribus/colormgmt/sclcms2colorprofileimpl.cpp	Mon May 11 22:15:35 2020
@@ -113,7 +113,7 @@
 
 	// Allocate array for profile data
 	profileData.resize(bytesNeeded);
-	if (profileData.size() != bytesNeeded)
+	if (profileData.size() != static_cast<int>(bytesNeeded))
 		return false;
 	done = cmsSaveProfileToMem(m_profileHandle, profileData.data(), &bytesNeeded);
 




More information about the scribus-commit mailing list