From 4f0c17451afb66e6fcf3bd453490b4b9d2b06b42 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sat, 21 Mar 2020 16:20:28 +0800 Subject: [PATCH] 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. --- jbig2dec/jbig2_page.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jbig2dec/jbig2_page.c b/jbig2dec/jbig2_page.c index 31b31f7..bc89a43 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; -- 1.8.3.1