diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-06-14 17:06:50 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-06-17 13:24:47 +0100 |
commit | 4a4e6adae4c1a0e9ab3b6fad477edfe26c1a2aca (patch) | |
tree | 4ed45be7545229ce5d8bb124a8332b5444004b1b /source/fitz/bidi.c | |
parent | c9bad4ef3e32bc799b134bc3b258f9392cf60e3e (diff) | |
download | mupdf-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/fitz/bidi.c')
-rw-r--r-- | source/fitz/bidi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/fitz/bidi.c b/source/fitz/bidi.c index 7d3ca3a2..e05347b7 100644 --- a/source/fitz/bidi.c +++ b/source/fitz/bidi.c @@ -219,10 +219,10 @@ split_at_script(const uint32_t *fragment, static void classify_characters(const uint32_t *text, fz_bidi_chartype *types, - int len, + size_t len, fz_bidi_flags flags) { - int i; + size_t i; if ((flags & BIDI_CLASSIFY_WHITE_SPACE)!=0) { @@ -264,9 +264,9 @@ classify_characters(const uint32_t *text, * Implements rule P2 of the Unicode Bidi Algorithm. * Note: Ignores explicit embeddings */ -static fz_bidi_level base_level_from_text(fz_bidi_chartype *types, int len) +static fz_bidi_level base_level_from_text(fz_bidi_chartype *types, size_t len) { - int i; + size_t i; for (i = 0; i < len; i++) { |