[Scummvm-git-logs] scummvm master -> d136adedd9d152631869c93ce3705d311d2fbb75
digitall
noreply at scummvm.org
Tue Jul 5 20:53:29 UTC 2022
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:
d136adedd9 COMMON: Fix Signed vs. Unsigned Comparison Warnings in Punycode
Commit: d136adedd9d152631869c93ce3705d311d2fbb75
https://github.com/scummvm/scummvm/commit/d136adedd9d152631869c93ce3705d311d2fbb75
Author: D G Turner (digitall at scummvm.org)
Date: 2022-07-05T21:52:28+01:00
Commit Message:
COMMON: Fix Signed vs. Unsigned Comparison Warnings in Punycode
Changed paths:
common/punycode.cpp
diff --git a/common/punycode.cpp b/common/punycode.cpp
index 6b6fc3d8366..76ff100b0fa 100644
--- a/common/punycode.cpp
+++ b/common/punycode.cpp
@@ -257,7 +257,7 @@ U32String punycode_decode(const String &src1) {
bool noncode = false;
// Scan string to the end for illegal characters
- for (size_t i = di + 1; i < srclen; i++) {
+ for (int i = di + 1; i < srclen; i++) {
if (!((src[i] >= '0' && src[i] <= '9') || (src[i] >= 'a' && src[i] <= 'z'))) {
noncode = true;
break;
@@ -301,7 +301,7 @@ U32String punycode_decode(const String &src1) {
size_t org_i = i;
for (size_t w = 1, k = BASE; true; k += BASE) {
- if (si >= src.size()) {
+ if (si >= (int)src.size()) {
warning("punycode_decode: incorrect digit");
return src1;
}
More information about the Scummvm-git-logs
mailing list