Commit 41d68b323079c414c54ea605694ab27dcce698ae

Authored by Simon Glass
Committed by Wolfgang Denk
1 parent 87a5d60103

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -105,7 +105,7 @@
105 105 * overflow detected, limit strm->avail_in to the
106 106 * max. possible size and recalculate last
107 107 */
108   - strm->avail_in = 0xffffffff - (unsigned int)in;
  108 + strm->avail_in = 0xffffffff - (uintptr_t)in;
109 109 last = in + (strm->avail_in - 5);
110 110 }
111 111 out = strm->next_out - OFF;