Skip to content

Commit 2297e50

Browse files
committed
ext/standard/head.c: Remove some useless casts
The field type is size_t
1 parent 91aca96 commit 2297e50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/head.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ PHP_FUNCTION(header)
4444
ZEND_PARSE_PARAMETERS_END();
4545

4646
ctr.line = line;
47-
ctr.line_len = (uint32_t)len;
47+
ctr.line_len = len;
4848
sapi_header_op(rep ? SAPI_HEADER_REPLACE:SAPI_HEADER_ADD, &ctr);
4949
}
5050
/* }}} */
@@ -62,7 +62,7 @@ PHP_FUNCTION(header_remove)
6262
ZEND_PARSE_PARAMETERS_END();
6363

6464
ctr.line = line;
65-
ctr.line_len = (uint32_t)len;
65+
ctr.line_len = len;
6666
sapi_header_op(line == NULL ? SAPI_HEADER_DELETE_ALL : SAPI_HEADER_DELETE, &ctr);
6767
}
6868
/* }}} */

0 commit comments

Comments
 (0)