[Scummvm-git-logs] scummvm master -> 163d0b333a47a2644d0c2a7efdd1a92ec8ec0fc0

sev- sev at scummvm.org
Tue Jul 27 16:44:20 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
163d0b333a COMMON: Make constants more portable


Commit: 163d0b333a47a2644d0c2a7efdd1a92ec8ec0fc0
    https://github.com/scummvm/scummvm/commit/163d0b333a47a2644d0c2a7efdd1a92ec8ec0fc0
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2021-07-27T18:44:00+02:00

Commit Message:
COMMON: Make constants more portable

Changed paths:
    common/punycode.cpp


diff --git a/common/punycode.cpp b/common/punycode.cpp
index 4502a3e728..518b9e9388 100644
--- a/common/punycode.cpp
+++ b/common/punycode.cpp
@@ -306,7 +306,7 @@ String punycode_encodefilename(const String src) {
 		// [\x00-\x1f\/":]
 		} else if (src[i] == '/' || src[i] == '"' || src[i] == ':' || (byte)src[i] < 0x20) {
 			dst += '\x81';
-			dst += (byte)src[i] + 0x80;
+			dst += (byte)src[i] + '\x80';
 		} else {
 			dst += src[i];
 		}
@@ -341,9 +341,9 @@ String punycode_decodefilename(const String src1) {
 		if ((byte)src[i] == 0x81 && i + 1 < src.size()) {
 			i++;
 			if (src[i] == 0x79)
-				dst += 0x81;
+				dst += '\x81';
 			else
-				dst += (byte)src[i] - 0x80;
+				dst += (byte)src[i] - '\x80';
 		} else {
 			dst += src[i];
 		}




More information about the Scummvm-git-logs mailing list