summaryrefslogtreecommitdiffstats
path: root/core/ustring.cpp
diff options
context:
space:
mode:
authorAriel Manzur <ariel@godotengine.org>2018-01-18 19:10:07 -0300
committerAriel Manzur <ariel@godotengine.org>2018-01-18 19:16:34 -0300
commite2b50e1abbc6cab58410a2ef4155bdcadf73efcf (patch)
tree65ffde2dc1e3919cbc998165fbb4a80c1bd470ae /core/ustring.cpp
parent7369b0075e430f30a32b848e8a60c85f0b2ce8f2 (diff)
downloadredot-engine-e2b50e1abbc6cab58410a2ef4155bdcadf73efcf.tar.gz
improves portability with some compilers
Diffstat (limited to 'core/ustring.cpp')
-rw-r--r--core/ustring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp
index 7aa2b012de..d445e4ed47 100644
--- a/core/ustring.cpp
+++ b/core/ustring.cpp
@@ -3167,7 +3167,7 @@ String String::http_unescape() const {
if ((ord1 >= '0' && ord1 <= '9') || (ord1 >= 'A' && ord1 <= 'Z')) {
CharType ord2 = ord_at(i + 2);
if ((ord2 >= '0' && ord2 <= '9') || (ord2 >= 'A' && ord2 <= 'Z')) {
- char bytes[2] = { ord1, ord2 };
+ char bytes[2] = { (char)ord1, (char)ord2 };
res += (char)strtol(bytes, NULL, 16);
i += 2;
}