diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-09-20 13:09:13 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-09-20 13:16:05 +0100 |
commit | e1a0ad2791fca8fbc03ec2751d4cb2f121f9d9e6 (patch) | |
tree | 6dccf45677a6286d5a6356bd8ef2f97e6dc825cc | |
parent | 8b112b324cef75cbe434c1f3851f0a656a75a4f2 (diff) | |
download | mupdf-e1a0ad2791fca8fbc03ec2751d4cb2f121f9d9e6.tar.xz |
Avoid signed/unsigned warnings.
-rw-r--r-- | source/fitz/unzip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/unzip.c b/source/fitz/unzip.c index 3c5c0da4..cb9ccc40 100644 --- a/source/fitz/unzip.c +++ b/source/fitz/unzip.c @@ -140,7 +140,7 @@ static void read_zip_dir_imp(fz_context *ctx, fz_zip_archive *zip, int start_off name = fz_malloc(ctx, namesize + 1); n = fz_read(ctx, file, (unsigned char*)name, namesize); - if (n < namesize) + if (n < (size_t)namesize) fz_throw(ctx, FZ_ERROR_GENERIC, "premature end of data in zip entry name"); name[namesize] = '\0'; @@ -300,7 +300,7 @@ static fz_buffer *read_zip_entry(fz_context *ctx, fz_archive *arch, const char * fz_try(ctx) { ubuf->len = fz_read(ctx, file, ubuf->data, ent->usize); - if (ubuf->len < ent->usize) + if (ubuf->len < (size_t)ent->usize) fz_warn(ctx, "premature end of data in stored zip archive entry"); } fz_catch(ctx) |