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));



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to