diff options
author | Simon Glass <sjg@chromium.org> | 2011-10-17 12:55:05 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-10-28 00:33:38 +0200 |
commit | 41d68b323079c414c54ea605694ab27dcce698ae (patch) | |
tree | c878e2c20beb2c85a97b208fd6098845eef63156 /lib/zlib | |
parent | 87a5d601031652293ec4b729fdb7ee01bbd940a8 (diff) | |
download | u-boot-imx-41d68b323079c414c54ea605694ab27dcce698ae.zip u-boot-imx-41d68b323079c414c54ea605694ab27dcce698ae.tar.gz u-boot-imx-41d68b323079c414c54ea605694ab27dcce698ae.tar.bz2 |
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>
Diffstat (limited to 'lib/zlib')
-rw-r--r-- | lib/zlib/inffast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zlib/inffast.c b/lib/zlib/inffast.c index 4834b0c..38f2f90 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; |