summaryrefslogtreecommitdiff
path: root/ext/json/json_scanner.re
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-02-10 15:59:33 +0100
committerAnatol Belski <ab@php.net>2015-02-10 16:02:55 +0100
commitca9ab1c993ab4c1c6d3f7b1cf37b61637007ce69 (patch)
tree9c608f1c3fca055b4174ee3f4528294788d18330 /ext/json/json_scanner.re
parent830d3d79b3744db021f2183857c5a625e96c6315 (diff)
downloadphp-git-ca9ab1c993ab4c1c6d3f7b1cf37b61637007ce69.tar.gz
better alignment + support size_t
Diffstat (limited to 'ext/json/json_scanner.re')
-rw-r--r--ext/json/json_scanner.re2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/json_scanner.re b/ext/json/json_scanner.re
index cbbfa41e5a..c18d8779b6 100644
--- a/ext/json/json_scanner.re
+++ b/ext/json/json_scanner.re
@@ -81,7 +81,7 @@ static int php_json_ucs2_to_int(php_json_scanner *s, int size)
return php_json_ucs2_to_int_ex(s, size, 1);
}
-void php_json_scanner_init(php_json_scanner *s, char *str, int str_len, long options)
+void php_json_scanner_init(php_json_scanner *s, char *str, size_t str_len, int options)
{
s->cursor = (php_json_ctype *) str;
s->limit = (php_json_ctype *) str + str_len;