]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Type cleanup. 59/head
authorMika Lindqvist <postmaster@raasu.org>
Sun, 22 Nov 2015 15:15:58 +0000 (17:15 +0200)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Wed, 25 Nov 2015 15:12:40 +0000 (16:12 +0100)
arch/x86/insert_string_sse.c
uncompr.c

index 1e8ec95ce6eeff2663f8f58a18272558a7afeaf7..90c619a86f61eccadc553f05f790be984ebb4326 100644 (file)
@@ -16,9 +16,9 @@
  *    (except for the last MIN_MATCH-1 bytes of the input file).
  */
 #ifdef X86_SSE4_2_CRC_HASH
-Pos insert_string_sse(deflate_state *const s, const Pos str, uInt count) {
+Pos insert_string_sse(deflate_state *const s, const Pos str, unsigned int count) {
     Pos ret = 0;
-    uInt idx;
+    unsigned int idx;
     unsigned *ip, val, h = 0;
 
     for (idx = 0; idx < count; idx++) {
index 9799eb991b28950ad022b21a63d3ed48f5ae4b84..9bfb1e1e7dd853f2ad92bf120ced9ea86410e1ac 100644 (file)
--- a/uncompr.c
+++ b/uncompr.c
@@ -52,11 +52,11 @@ int ZEXPORT uncompress(unsigned char *dest, uLong *destLen, const unsigned char
 
     do {
         if (stream.avail_out == 0) {
-            stream.avail_out = left > (uLong)max ? max : (uInt)left;
+            stream.avail_out = left > (unsigned long)max ? max : (unsigned int)left;
             left -= stream.avail_out;
         }
         if (stream.avail_in == 0) {
-            stream.avail_in = sourceLen > (uLong)max ? max : (uInt)sourceLen;
+            stream.avail_in = sourceLen > (unsigned long)max ? max : (unsigned int)sourceLen;
             sourceLen -= stream.avail_in;
         }
         err = inflate(&stream, Z_NO_FLUSH);