]> granicus.if.org Git - php/commitdiff
Remove unnecessary cast
authorAnatol Belski <ab@php.net>
Sat, 17 Feb 2018 13:19:06 +0000 (14:19 +0100)
committerAnatol Belski <ab@php.net>
Sat, 17 Feb 2018 13:19:06 +0000 (14:19 +0100)
ext/iconv/iconv.c

index 42892421a32c72c533beef24fe91ca5bbdf71376..6653544de466c025027d3e7d5dfcea9337fcc192 100644 (file)
@@ -424,7 +424,7 @@ static int php_iconv_output_handler(void **nothing, php_output_context *output_c
                        } else {
                                len = spprintf(&content_type, 0, "Content-Type:%.*s; charset=%s", mimetype_len ? mimetype_len : (int) strlen(mimetype), mimetype, get_output_encoding());
                        }
-                       if (content_type && SUCCESS == sapi_add_header(content_type, (uint32_t)len, 0)) {
+                       if (content_type && SUCCESS == sapi_add_header(content_type, len, 0)) {
                                SG(sapi_headers).send_default_content_type = 0;
                                php_output_handler_hook(PHP_OUTPUT_HANDLER_HOOK_IMMUTABLE, NULL);
                        }