Skip to content

Commit f5e7bf3

Browse files
committed
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.
1 parent 120deaf commit f5e7bf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http/modules/ngx_http_gzip_filter_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ ngx_http_gzip_filter_memory(ngx_http_request_t *r, ngx_http_gzip_ctx_t *ctx)
520520
* buffer for literals/lengths.
521521
*/
522522

523-
ctx->allocated += (1 << (memlevel + 6));
523+
ctx->allocated += ((ngx_uint_t) 1 << (memlevel + 6));
524524
ctx->zlib_lit_mem = 1;
525525
}
526526

0 commit comments

Comments
 (0)