summaryrefslogtreecommitdiff
path: root/ext/json/ext/parser/unicode.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/ext/parser/unicode.c')
-rw-r--r--ext/json/ext/parser/unicode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/ext/parser/unicode.c b/ext/json/ext/parser/unicode.c
index b2f1e58676..80e5c6f036 100644
--- a/ext/json/ext/parser/unicode.c
+++ b/ext/json/ext/parser/unicode.c
@@ -81,7 +81,7 @@ char *JSON_convert_UTF16_to_UTF8 (
buf[1] = *p++;
buf[2] = *p++;
buf[3] = *p++;
- tmpPtr[i] = strtol(buf, NULL, 16);
+ tmpPtr[i] = (UTF16)strtol(buf, NULL, 16);
p += 2;
}