From 6e2a71d0b743c105c71f88a7ed1de0851cdd90ca Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 2 Nov 2016 20:02:40 +0000 Subject: Fix signed/unsigned and size_t/int/fz_off_t warnings. All seen in MSVC, mostly in 64bit builds. --- source/html/epub-doc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/html/epub-doc.c') diff --git a/source/html/epub-doc.c b/source/html/epub-doc.c index 7b44107b..a30fbcd3 100644 --- a/source/html/epub-doc.c +++ b/source/html/epub-doc.c @@ -41,7 +41,7 @@ epub_resolve_link(fz_context *ctx, fz_document *doc_, const char *dest) epub_chapter *ch; const char *s = strchr(dest, '#'); - int n = s ? s - dest : strlen(dest); + size_t n = s ? s - dest : strlen(dest); if (s && s[1] == 0) s = NULL; -- cgit v1.2.3