提交 41d68b32 编写于 作者: S Simon Glass 提交者: Wolfgang Denk

zlib: Fix integer cast of pointer

Fix to cast an integer to a pointer using uintptr_t.
Signed-off-by: NSimon Glass <sjg@chromium.org>
上级 87a5d601
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册