From e2b50e1abbc6cab58410a2ef4155bdcadf73efcf Mon Sep 17 00:00:00 2001 From: Ariel Manzur Date: Thu, 18 Jan 2018 19:10:07 -0300 Subject: improves portability with some compilers --- core/ustring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/ustring.cpp') 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; } -- cgit v1.2.3