mirror of
https://github.com/php/php-src.git
synced 2026-03-31 20:53:00 +02:00
ext/standard/head.c: Remove some useless casts
The field type is size_t
This commit is contained in:
@@ -44,7 +44,7 @@ PHP_FUNCTION(header)
|
||||
ZEND_PARSE_PARAMETERS_END();
|
||||
|
||||
ctr.line = line;
|
||||
ctr.line_len = (uint32_t)len;
|
||||
ctr.line_len = len;
|
||||
sapi_header_op(rep ? SAPI_HEADER_REPLACE:SAPI_HEADER_ADD, &ctr);
|
||||
}
|
||||
/* }}} */
|
||||
@@ -62,7 +62,7 @@ PHP_FUNCTION(header_remove)
|
||||
ZEND_PARSE_PARAMETERS_END();
|
||||
|
||||
ctr.line = line;
|
||||
ctr.line_len = (uint32_t)len;
|
||||
ctr.line_len = len;
|
||||
sapi_header_op(line == NULL ? SAPI_HEADER_DELETE_ALL : SAPI_HEADER_DELETE, &ctr);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
Reference in New Issue
Block a user