@@ -323,12 +323,12 @@ size_t php_http_parser_execute (php_http_parser *parser,
323
323
{
324
324
char c , ch ;
325
325
const char * p = data , * pe ;
326
- int64_t to_read ;
326
+ size_t to_read ;
327
327
328
328
enum state state = (enum state ) parser -> state ;
329
329
enum header_states header_state = (enum header_states ) parser -> header_state ;
330
- uint64_t index = parser -> index ;
331
- uint64_t nread = parser -> nread ;
330
+ uint32_t index = parser -> index ;
331
+ uint32_t nread = parser -> nread ;
332
332
333
333
/* technically we could combine all of these (except for url_mark) into one
334
334
variable, saving stack space, but it seems more clear to have them
@@ -1425,7 +1425,7 @@ size_t php_http_parser_execute (php_http_parser *parser,
1425
1425
}
1426
1426
1427
1427
case s_body_identity :
1428
- to_read = MIN (pe - p , (int64_t )parser -> content_length );
1428
+ to_read = MIN (pe - p , (size_t )parser -> content_length );
1429
1429
if (to_read > 0 ) {
1430
1430
if (settings -> on_body ) settings -> on_body (parser , p , to_read );
1431
1431
p += to_read - 1 ;
@@ -1510,7 +1510,7 @@ size_t php_http_parser_execute (php_http_parser *parser,
1510
1510
{
1511
1511
assert (parser -> flags & F_CHUNKED );
1512
1512
1513
- to_read = MIN (pe - p , (int64_t )(parser -> content_length ));
1513
+ to_read = MIN (pe - p , (size_t )(parser -> content_length ));
1514
1514
1515
1515
if (to_read > 0 ) {
1516
1516
if (settings -> on_body ) settings -> on_body (parser , p , to_read );
0 commit comments