diff options
author | Kalle Sommer Nielsen <kalle@php.net> | 2009-05-19 16:06:00 +0000 |
---|---|---|
committer | Kalle Sommer Nielsen <kalle@php.net> | 2009-05-19 16:06:00 +0000 |
commit | 9e230424b568dde3531273ae4b3e06273c03c66f (patch) | |
tree | 41234bbf9d18c8f9fb70cb5b979477565e970d83 /ext/json | |
parent | 01fc4ed1d63c6a292fa89c303cb6b7ff824bc84a (diff) | |
download | php-git-9e230424b568dde3531273ae4b3e06273c03c66f.tar.gz |
Cast to unsigned char to prevent compiler warning
Diffstat (limited to 'ext/json')
-rw-r--r-- | ext/json/JSON_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/JSON_parser.c b/ext/json/JSON_parser.c index 6fbdb54814..259b77b084 100644 --- a/ext/json/JSON_parser.c +++ b/ext/json/JSON_parser.c @@ -360,7 +360,7 @@ static void utf16_to_utf8(smart_str *buf, unsigned short utf16) | (utf16 & 0x3ff)) + 0x10000; buf->len -= 3; - smart_str_appendc(buf, 0xf0 | (utf32 >> 18)); + smart_str_appendc(buf, (unsigned char) (0xf0 | (utf32 >> 18))); smart_str_appendc(buf, 0x80 | ((utf32 >> 12) & 0x3f)); smart_str_appendc(buf, 0x80 | ((utf32 >> 6) & 0x3f)); smart_str_appendc(buf, 0x80 | (utf32 & 0x3f)); |