]> granicus.if.org Git - php/commitdiff
size_t vs int
authorAnatol Belski <ab@php.net>
Mon, 9 Feb 2015 09:47:39 +0000 (10:47 +0100)
committerAnatol Belski <ab@php.net>
Mon, 9 Feb 2015 09:47:39 +0000 (10:47 +0100)
ext/json/json_encoder.c

index f219b50263f1631d45cb6eafcea01c385d870541..8fabf77d83ebafe0209efdd529a5f4d50fece1bb 100644 (file)
@@ -239,7 +239,7 @@ static void php_json_encode_array(smart_str *buf, zval *val, int options) /* {{{
 }
 /* }}} */
 
-static int php_json_utf8_to_utf16(unsigned short *utf16, char utf8[], int len) /* {{{ */
+static int php_json_utf8_to_utf16(unsigned short *utf16, char utf8[], size_t len) /* {{{ */
 {
        size_t pos = 0, us;
        int j, status;