kalle Tue May 19 16:06:01 2009 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/json JSON_parser.c
Log:
Cast to unsigned char to prevent compiler warning
http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.1.2.12.2.10&r2=1.1.2.12.2.11&diff_format=u
Index: php-src/ext/json/JSON_parser.c
diff -u php-src/ext/json/JSON_parser.c:1.1.2.12.2.10
php-src/ext/json/JSON_parser.c:1.1.2.12.2.11
--- php-src/ext/json/JSON_parser.c:1.1.2.12.2.10 Thu May 14 22:02:08 2009
+++ php-src/ext/json/JSON_parser.c Tue May 19 16:06:00 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));
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php