From 2297e5077225fcd45f65fcd00dafb85b5659eb4d Mon Sep 17 00:00:00 2001 From: Gina Peter Bnayard Date: Mon, 12 Aug 2024 18:17:57 +0200 Subject: [PATCH] ext/standard/head.c: Remove some useless casts The field type is size_t --- ext/standard/head.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/standard/head.c b/ext/standard/head.c index 7d223c646f2..1177bae698e 100644 --- a/ext/standard/head.c +++ b/ext/standard/head.c @@ -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); } /* }}} */