]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - lib/zlib/inffast.c
video: Remove the old parade driver
[karo-tx-uboot.git] / lib / zlib / inffast.c
index 4834b0c86e00c3d4e6f0f217fa1d9f8f0dbdd5a0..0700e04cb9acd8cc15ad38eb341f2ffbc2838612 100644 (file)
@@ -66,9 +66,8 @@
       requires strm->avail_out >= 258 for each loop to avoid checking for
       output space.
  */
-void inflate_fast(strm, start)
-z_streamp strm;
-unsigned start;         /* inflate()'s starting value for strm->avail_out */
+void inflate_fast(z_streamp strm, unsigned start)
+/* start: inflate()'s starting value for strm->avail_out */
 {
     struct inflate_state FAR *state;
     unsigned char FAR *in;      /* local strm->next_in */
@@ -105,7 +104,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;