mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
zlib: Fix integer cast of pointer
Fix to cast an integer to a pointer using uintptr_t. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
87a5d60103
commit
41d68b3230
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ unsigned start; /* inflate()'s starting value for strm->avail_out */
|
||||||
* overflow detected, limit strm->avail_in to the
|
* overflow detected, limit strm->avail_in to the
|
||||||
* max. possible size and recalculate last
|
* 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);
|
last = in + (strm->avail_in - 5);
|
||||||
}
|
}
|
||||||
out = strm->next_out - OFF;
|
out = strm->next_out - OFF;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue