diff options
Diffstat (limited to 'source/html')
-rw-r--r-- | source/html/epub-doc.c | 2 | ||||
-rw-r--r-- | source/html/html-layout.c | 2 |
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); */ |