diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2020-03-21 16:20:28 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2020-03-21 20:52:37 +0800 |
commit | 4f0c17451afb66e6fcf3bd453490b4b9d2b06b42 (patch) | |
tree | 4cb45f3c0ae09a7a7b5feaded4d159c64378a55a /jbig2dec | |
parent | a45d7217c8c1578475ee9204d1f4ad46520f44d1 (diff) | |
download | ghostpdl-4f0c17451afb66e6fcf3bd453490b4b9d2b06b42.tar.gz |
jbig2dec: Fix two overlooked warnings.
While working to fix all warnings seen when -Wsign-conversion is
enabled, these two warnings were accidentally introduced by commit
ff53af0d4ff9291aa5039522f5553a2850dd569d and not noticed in the
avalanche of warnings emitted due to -Wsign-conversion. This commit
changes the indicies to the type of the limit variable, fixing the
warnings.
Diffstat (limited to 'jbig2dec')
-rw-r--r-- | jbig2dec/jbig2_page.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jbig2dec/jbig2_page.c b/jbig2dec/jbig2_page.c index 31b31f788..bc89a43a5 100644 --- a/jbig2dec/jbig2_page.c +++ b/jbig2dec/jbig2_page.c @@ -319,7 +319,7 @@ jbig2_page_add_result(Jbig2Ctx *ctx, Jbig2Page *page, Jbig2Image *image, uint32_ Jbig2Image * jbig2_page_out(Jbig2Ctx *ctx) { - int index; + uint32_t index; /* search for a completed page */ for (index = 0; index < ctx->max_page_index; index++) { @@ -348,7 +348,7 @@ jbig2_page_out(Jbig2Ctx *ctx) void jbig2_release_page(Jbig2Ctx *ctx, Jbig2Image *image) { - int index; + uint32_t index; if (image == NULL) return; |