projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87a5d60
)
zlib: Fix integer cast of pointer
author
Simon Glass
<sjg@chromium.org>
Mon, 17 Oct 2011 12:55:05 +0000
(12:55 +0000)
committer
Wolfgang Denk
<wd@denx.de>
Thu, 27 Oct 2011 22:33:38 +0000
(
00:33
+0200)
Fix to cast an integer to a pointer using uintptr_t.
Signed-off-by: Simon Glass <sjg@chromium.org>
lib/zlib/inffast.c
patch
|
blob
|
history
diff --git
a/lib/zlib/inffast.c
b/lib/zlib/inffast.c
index 4834b0c86e00c3d4e6f0f217fa1d9f8f0dbdd5a0..38f2f905e884e59fc4f8553b4f2ce9c5e5b4f85e 100644
(file)
--- 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 in
t)in;
+
strm->avail_in = 0xffffffff - (uintptr_
t)in;
last = in + (strm->avail_in - 5);
}
out = strm->next_out - OFF;