]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fix ambiguous shift warning in inflateCopy.
authorMika T. Lindqvist <postmaster@raasu.org>
Tue, 7 Feb 2023 22:38:33 +0000 (00:38 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 8 Feb 2023 14:21:20 +0000 (15:21 +0100)
inflate.c

index eaf78ebfb15018b8472cca78909652b9ffd6c071..6ddb78828f8fd577a24120cea92022e71873702d 100644 (file)
--- a/inflate.c
+++ b/inflate.c
@@ -1352,7 +1352,7 @@ int32_t Z_EXPORT PREFIX(inflateCopy)(PREFIX3(stream) *dest, PREFIX3(stream) *sou
     }
     copy->next = copy->codes + (state->next - state->codes);
     if (window != NULL) {
-        ZCOPY_WINDOW(window, state->window, 1U << state->wbits);
+        ZCOPY_WINDOW(window, state->window, (size_t)1U << state->wbits);
     }
     copy->window = window;
     dest->state = (struct internal_state *)copy;