r23248 by jghali - Fix signed/unsigned comparison warning

scribus-commit scribus-commit at lists.scribus.net
Thu Oct 10 06:06:04 UTC 2019


Author: jghali
Date: Thu Oct 10 06:06:04 2019
New Revision: 23248

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

Modified:
    trunk/Scribus/scribus/text/index.cpp

Modified: trunk/Scribus/scribus/text/index.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23248&path=/trunk/Scribus/scribus/text/index.cpp
==============================================================================
--- trunk/Scribus/scribus/text/index.cpp	(original)
+++ trunk/Scribus/scribus/text/index.cpp	Thu Oct 10 06:06:04 2019
@@ -14,7 +14,7 @@
 // find run with runStart <= pos < runEnd
 uint RunIndex::search(int pos) const
 {
-	std::vector<uint>::const_iterator it = std::upper_bound(runEnds.begin(), runEnds.end(), pos);
+	std::vector<uint>::const_iterator it = std::upper_bound(runEnds.begin(), runEnds.end(), unsigned(pos));
 	return it - runEnds.begin();
 }
 




More information about the scribus-commit mailing list