summaryrefslogtreecommitdiff
path: root/source/html
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-11-02 20:02:40 +0000
committerRobin Watts <robin.watts@artifex.com>2016-11-03 18:10:50 +0000
commit6e2a71d0b743c105c71f88a7ed1de0851cdd90ca (patch)
tree8bd6d452d6b4686f509e6478edf13f267621d6f3 /source/html
parent0289421f68b810cee600a5a047507091ff4731df (diff)
downloadmupdf-6e2a71d0b743c105c71f88a7ed1de0851cdd90ca.tar.xz
Fix signed/unsigned and size_t/int/fz_off_t warnings.
All seen in MSVC, mostly in 64bit builds.
Diffstat (limited to 'source/html')
-rw-r--r--source/html/epub-doc.c2
-rw-r--r--source/html/html-layout.c2
2 files changed, 2 insertions, 2 deletions
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;
diff --git a/source/html/html-layout.c b/source/html/html-layout.c
index e57aac68..8b7a08db 100644
--- a/source/html/html-layout.c
+++ b/source/html/html-layout.c
@@ -938,7 +938,7 @@ static int walk_string(string_walker *walker)
if (walker->language)
{
fz_string_from_text_language(lang, walker->language);
- hb_buffer_set_language(walker->hb_buf, hb_language_from_string(lang, strlen(lang)));
+ hb_buffer_set_language(walker->hb_buf, hb_language_from_string(lang, (int)strlen(lang)));
}
/* hb_buffer_set_cluster_level(hb_buf, HB_BUFFER_CLUSTER_LEVEL_CHARACTERS); */