summaryrefslogtreecommitdiff
path: root/ext/json/ext/parser/unicode.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-01 16:17:56 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-01 16:17:56 +0000
commitc719ecb535a99defb45d6029d21d3134bec7c5ae (patch)
tree7a22a89b3799d1e2f2ea3257e4a4a07dc80173ea /ext/json/ext/parser/unicode.c
parentd2d0d733c168916d356e088ed14b6e5a47766766 (diff)
* ext/json: Update to JSON 1.1.9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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;
}