summaryrefslogtreecommitdiff
path: root/source/cbz
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-06-14 17:06:50 +0100
committerRobin Watts <robin.watts@artifex.com>2016-06-17 13:24:47 +0100
commit4a4e6adae4c1a0e9ab3b6fad477edfe26c1a2aca (patch)
tree4ed45be7545229ce5d8bb124a8332b5444004b1b /source/cbz
parentc9bad4ef3e32bc799b134bc3b258f9392cf60e3e (diff)
downloadmupdf-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/cbz')
-rw-r--r--source/cbz/mucbz.c2
-rw-r--r--source/cbz/muimg.c2
-rw-r--r--source/cbz/mutiff.c2
3 files changed, 3 insertions, 3 deletions
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;
}