From 4a4e6adae4c1a0e9ab3b6fad477edfe26c1a2aca Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 14 Jun 2016 17:06:50 +0100 Subject: 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. --- source/cbz/mucbz.c | 2 +- source/cbz/muimg.c | 2 +- source/cbz/mutiff.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source/cbz') diff --git a/source/cbz/mucbz.c b/source/cbz/mucbz.c index 2cbe3a80..309acd71 100644 --- a/source/cbz/mucbz.c +++ b/source/cbz/mucbz.c @@ -190,7 +190,7 @@ static int cbz_lookup_metadata(fz_context *ctx, cbz_document *doc, const char *key, char *buf, int size) { if (!strcmp(key, "format")) - return fz_strlcpy(buf, "CBZ", size); + return (int)fz_strlcpy(buf, "CBZ", size); return -1; } diff --git a/source/cbz/muimg.c b/source/cbz/muimg.c index 41831cdf..d0087fa7 100644 --- a/source/cbz/muimg.c +++ b/source/cbz/muimg.c @@ -85,7 +85,7 @@ static int img_lookup_metadata(fz_context *ctx, img_document *doc, const char *key, char *buf, int size) { if (!strcmp(key, "format")) - return fz_strlcpy(buf, "Image", size); + return (int)fz_strlcpy(buf, "Image", size); return -1; } diff --git a/source/cbz/mutiff.c b/source/cbz/mutiff.c index 57e90ea3..ad859987 100644 --- a/source/cbz/mutiff.c +++ b/source/cbz/mutiff.c @@ -103,7 +103,7 @@ static int tiff_lookup_metadata(fz_context *ctx, tiff_document *doc, const char *key, char *buf, int size) { if (!strcmp(key, "format")) - return fz_strlcpy(buf, "TIFF", size); + return (int)fz_strlcpy(buf, "TIFF", size); return -1; } -- cgit v1.2.3