diff options
author | Ariel Manzur <ariel@godotengine.org> | 2018-01-18 19:10:07 -0300 |
---|---|---|
committer | Ariel Manzur <ariel@godotengine.org> | 2018-01-18 19:16:34 -0300 |
commit | e2b50e1abbc6cab58410a2ef4155bdcadf73efcf (patch) | |
tree | 65ffde2dc1e3919cbc998165fbb4a80c1bd470ae /core/ustring.cpp | |
parent | 7369b0075e430f30a32b848e8a60c85f0b2ce8f2 (diff) | |
download | redot-engine-e2b50e1abbc6cab58410a2ef4155bdcadf73efcf.tar.gz |
improves portability with some compilers
Diffstat (limited to 'core/ustring.cpp')
-rw-r--r-- | core/ustring.cpp | 2 |
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; } |