cvs: php-src /ext/json JSON_parser.c

From: Date: Tue, 19 May 2009 16:06:17 +0000
Subject: cvs: php-src /ext/json JSON_parser.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-58010@lists.php.net to get a copy of this message
kalle Tue May 19 16:06:17 2009 UTC Modified files: /php-src/ext/json JSON_parser.c Log: MFB: Cast to unsigned char to prevent compiler warning http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.26&r2=1.27&diff_format=u Index: php-src/ext/json/JSON_parser.c diff -u php-src/ext/json/JSON_parser.c:1.26 php-src/ext/json/JSON_parser.c:1.27 --- php-src/ext/json/JSON_parser.c:1.26 Thu May 14 00:13:57 2009 +++ php-src/ext/json/JSON_parser.c Tue May 19 16:06:17 2009 @@ -360,7 +360,7 @@ | (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));

« previous php.cvs (#58010) next »