r23229 by jghali - Fix msvc warning C4309: truncation of constant value

scribus-commit scribus-commit at lists.scribus.net
Tue Oct 1 03:54:12 UTC 2019


Author: jghali
Date: Tue Oct  1 03:54:12 2019
New Revision: 23229

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23229
Log:
Fix msvc warning C4309: truncation of constant value

Modified:
    trunk/Scribus/scribus/fonts/scface_ps.cpp

Modified: trunk/Scribus/scribus/fonts/scface_ps.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23229&path=/trunk/Scribus/scribus/fonts/scface_ps.cpp
==============================================================================
--- trunk/Scribus/scribus/fonts/scface_ps.cpp	(original)
+++ trunk/Scribus/scribus/fonts/scface_ps.cpp	Tue Oct  1 03:54:12 2019
@@ -232,10 +232,10 @@
 		posi += 6;
 		for (int j = posi; j < bb.size(); ++j)
 		{
-			if ((bb[j] == static_cast<char>(0x80)) && (j+1 < bb.size()) && (static_cast<int>(bb[j+1]) == 3))
+			if ((bb[j] == '\x80') && (j + 1 < bb.size()) && (static_cast<int>(bb[j + 1]) == 3))
 				break;
-			if (bb[j]=='\r')
-				str+="\n";
+			if (bb[j] == '\r')
+				str += "\n";
 			else
 				str += bb[j];
 		}




More information about the scribus-commit mailing list