mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
use size_t for str length
This commit is contained in:
parent
6747c166d8
commit
a1208b4726
2 changed files with 2 additions and 2 deletions
|
@ -158,7 +158,7 @@ errlex:
|
||||||
|
|
||||||
%% /* Functions */
|
%% /* Functions */
|
||||||
|
|
||||||
void php_json_parser_init(php_json_parser *parser, zval *return_value, char *str, int str_len, long options, long max_depth)
|
void php_json_parser_init(php_json_parser *parser, zval *return_value, char *str, size_t str_len, long options, long max_depth)
|
||||||
{
|
{
|
||||||
memset(parser, 0, sizeof(php_json_parser));
|
memset(parser, 0, sizeof(php_json_parser));
|
||||||
php_json_scanner_init(&parser->scanner, str, str_len, options);
|
php_json_scanner_init(&parser->scanner, str, str_len, options);
|
||||||
|
|
|
@ -29,7 +29,7 @@ typedef struct _php_json_parser {
|
||||||
long max_depth;
|
long max_depth;
|
||||||
} php_json_parser;
|
} php_json_parser;
|
||||||
|
|
||||||
void php_json_parser_init(php_json_parser *parser, zval *return_value, char *str, int str_len, long options, long max_depth);
|
void php_json_parser_init(php_json_parser *parser, zval *return_value, char *str, size_t str_len, long options, long max_depth);
|
||||||
|
|
||||||
php_json_error_code php_json_parser_error_code(php_json_parser *parser);
|
php_json_error_code php_json_parser_error_code(php_json_parser *parser);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue