xpress_decode_match(): Fix signs in format strings
authorEric Biggers <ebiggers3@gmail.com>
Fri, 21 Dec 2012 04:17:25 +0000 (22:17 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Fri, 21 Dec 2012 04:17:25 +0000 (22:17 -0600)
src/xpress-decompress.c

index 9c5d48662883baa0cb8edb4805f0ec27e0d3b90a..de395de96afeecd3cdf3ad83fc62cdab00e1a3f4 100644 (file)
@@ -142,15 +142,15 @@ static int xpress_decode_match(unsigned huffsym, unsigned window_pos,
        match_src = match_dest - match_offset;
 
        if (window_pos + match_len > window_len) {
-               ERROR("XPRESS decompression error: match of length %d "
+               ERROR("XPRESS decompression error: match of length %u "
                      "bytes overflows window", match_len);
                return -1;
        }
 
        if (match_src < window) {
-               ERROR("XPRESS decompression error: match of length %d bytes "
-                     "references data before window (match_offset = %d, "
-                     "window_pos = %d)", match_len, match_offset, window_pos);
+               ERROR("XPRESS decompression error: match of length %u bytes "
+                     "references data before window (match_offset = %u, "
+                     "window_pos = %u)", match_len, match_offset, window_pos);
                return -1;
        }