diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2016-04-04 20:37:00 +0200 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2016-04-04 20:44:56 +0200 |
commit | 353a05d9e8e8023e1c3c24816f712bdcb05502ca (patch) | |
tree | b6d4cc11678c320f53cb5d4aa756a00e1f0c6844 /source/html | |
parent | ff574225d80a771a32377783ff0a70ea28af1991 (diff) | |
download | mupdf-353a05d9e8e8023e1c3c24816f712bdcb05502ca.tar.xz |
Fixed signed/unsigned comparison warnings.
Diffstat (limited to 'source/html')
-rw-r--r-- | source/html/html-layout.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/html/html-layout.c b/source/html/html-layout.c index 51a6c5ce..140577fd 100644 --- a/source/html/html-layout.c +++ b/source/html/html-layout.c @@ -655,9 +655,9 @@ typedef struct string_walker int scale; } string_walker; -static int quick_ligature_mov(fz_context *ctx, string_walker *walker, int i, int n, int unicode) +static int quick_ligature_mov(fz_context *ctx, string_walker *walker, unsigned int i, unsigned int n, int unicode) { - int k; + unsigned int k; for (k = i + n + 1; k < walker->glyph_count; ++k) { walker->glyph_info[k-n] = walker->glyph_info[k]; @@ -667,7 +667,7 @@ static int quick_ligature_mov(fz_context *ctx, string_walker *walker, int i, int return unicode; } -static int quick_ligature(fz_context *ctx, string_walker *walker, int i) +static int quick_ligature(fz_context *ctx, string_walker *walker, unsigned int i) { if (walker->glyph_info[i].codepoint == 'f' && i + 1 < walker->glyph_count && !walker->font->is_mono) { @@ -797,7 +797,7 @@ static int walk_string(string_walker *walker) if (quickshape) { - int i; + unsigned int i; for (i = 0; i < walker->glyph_count; ++i) { int unicode = quick_ligature(ctx, walker, i); |