[nginx] Win32: fixed 64-bit compilation with MSVC after 9333:199...
Maxim Dounin
mdounin at mdounin.ru
Thu Jun 5 00:35:57 UTC 2025
details: http://freenginx.org/hg/nginx/rev/ccd6209f65ca
branches:
changeset: 9374:ccd6209f65ca
user: Maxim Dounin <mdounin at mdounin.ru>
date: Thu Jun 05 02:52:07 2025 +0300
description:
Win32: fixed 64-bit compilation with MSVC after 9333:1996ea0bc55d.
Compatibility with zlib in LIT_MEM mode added in 9333:1996ea0bc55d triggered
MSVC warning C4334 (result of 32-bit shift implicitly converted to 64 bits),
fixed by adding explicit conversion.
diffstat:
src/http/modules/ngx_http_gzip_filter_module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff --git a/src/http/modules/ngx_http_gzip_filter_module.c b/src/http/modules/ngx_http_gzip_filter_module.c
--- a/src/http/modules/ngx_http_gzip_filter_module.c
+++ b/src/http/modules/ngx_http_gzip_filter_module.c
@@ -520,7 +520,7 @@ ngx_http_gzip_filter_memory(ngx_http_req
* buffer for literals/lengths.
*/
- ctx->allocated += (1 << (memlevel + 6));
+ ctx->allocated += ((ngx_uint_t) 1 << (memlevel + 6));
ctx->zlib_lit_mem = 1;
}
More information about the nginx-devel
mailing list