From: Simon Glass Date: Mon, 17 Oct 2011 12:55:05 +0000 (+0000) Subject: zlib: Fix integer cast of pointer X-Git-Tag: v2025.01-rc5-pxa1908~18630 X-Git-Url: http://git.dujemihanovic.xyz/img/static/%7B%7B%20%24image.RelPermalink%20%7D%7D?a=commitdiff_plain;h=41d68b323079c414c54ea605694ab27dcce698ae;p=u-boot.git zlib: Fix integer cast of pointer Fix to cast an integer to a pointer using uintptr_t. Signed-off-by: Simon Glass --- diff --git a/lib/zlib/inffast.c b/lib/zlib/inffast.c index 4834b0c86e..38f2f905e8 100644 --- a/lib/zlib/inffast.c +++ b/lib/zlib/inffast.c @@ -105,7 +105,7 @@ unsigned start; /* inflate()'s starting value for strm->avail_out */ * overflow detected, limit strm->avail_in to the * max. possible size and recalculate last */ - strm->avail_in = 0xffffffff - (unsigned int)in; + strm->avail_in = 0xffffffff - (uintptr_t)in; last = in + (strm->avail_in - 5); } out = strm->next_out - OFF;