From: Mika T. Lindqvist Date: Tue, 7 Feb 2023 22:38:33 +0000 (+0200) Subject: Fix ambiguous shift warning in inflateCopy. X-Git-Tag: 2.1.0-beta1~59 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f43f4ddb908dc6fc2541ab5c8d8b8fe08da9a460;p=thirdparty%2Fzlib-ng.git Fix ambiguous shift warning in inflateCopy. --- diff --git a/inflate.c b/inflate.c index eaf78ebf..6ddb7882 100644 --- 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;