diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-06-14 17:06:50 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-06-17 13:24:47 +0100 |
commit | 4a4e6adae4c1a0e9ab3b6fad477edfe26c1a2aca (patch) | |
tree | 4ed45be7545229ce5d8bb124a8332b5444004b1b /source/xps/xps-zip.c | |
parent | c9bad4ef3e32bc799b134bc3b258f9392cf60e3e (diff) | |
download | mupdf-4a4e6adae4c1a0e9ab3b6fad477edfe26c1a2aca.tar.xz |
Use 'size_t' instead of int as appropriate.
This silences the many warnings we get when building for x64
in windows.
This does not address any of the warnings we get in thirdparty
libraries - in particular harfbuzz. These look (at a quick
glance) harmless though.
Diffstat (limited to 'source/xps/xps-zip.c')
-rw-r--r-- | source/xps/xps-zip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/xps/xps-zip.c b/source/xps/xps-zip.c index d359213d..b0c4403a 100644 --- a/source/xps/xps-zip.c +++ b/source/xps/xps-zip.c @@ -3,7 +3,7 @@ static void xps_init_document(fz_context *ctx, xps_document *doc); xps_part * -xps_new_part(fz_context *ctx, xps_document *doc, char *name, unsigned char *data, int size) +xps_new_part(fz_context *ctx, xps_document *doc, char *name, unsigned char *data, size_t size) { xps_part *part; @@ -43,7 +43,7 @@ xps_read_part(fz_context *ctx, xps_document *doc, char *partname) fz_buffer *buf, *tmp; char path[2048]; unsigned char *data; - int size; + size_t size; int count; char *name; int seen_last; @@ -224,7 +224,7 @@ static int xps_lookup_metadata(fz_context *ctx, xps_document *doc, const char *key, char *buf, int size) { if (!strcmp(key, "format")) - return fz_strlcpy(buf, "XPS", size); + return (int)fz_strlcpy(buf, "XPS", size); return -1; } |