From: Even Rouault Date: Fri, 2 Jun 2017 07:36:25 +0000 (+0200) Subject: t1_generate_luts.c: fix compiler warnings X-Git-Tag: v2.2.0~80^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e8b502842075738c9a062a2f06dace3f35dd7cd;p=openjpeg t1_generate_luts.c: fix compiler warnings --- diff --git a/src/lib/openjp2/t1_generate_luts.c b/src/lib/openjp2/t1_generate_luts.c index a4ce1e17..9ad6f200 100644 --- a/src/lib/openjp2/t1_generate_luts.c +++ b/src/lib/openjp2/t1_generate_luts.c @@ -39,7 +39,7 @@ #include "opj_includes.h" -static int t1_init_ctxno_zc(int f, int orient) +static int t1_init_ctxno_zc(OPJ_UINT32 f, OPJ_UINT32 orient) { int h, v, d, n, t, hv; n = 0; @@ -116,7 +116,7 @@ static int t1_init_ctxno_zc(int f, int orient) return (T1_CTXNO_ZC + n); } -static int t1_init_ctxno_sc(int f) +static int t1_init_ctxno_sc(OPJ_UINT32 f) { int hc, vc, n; n = 0; @@ -160,7 +160,7 @@ static int t1_init_ctxno_sc(int f) return (T1_CTXNO_SC + n); } -static int t1_init_spb(int f) +static int t1_init_spb(OPJ_UINT32 f) { int hc, vc, n; @@ -220,7 +220,7 @@ int main(int argc, char **argv) /* lut_ctxno_zc */ for (j = 0; j < 4; ++j) { for (i = 0; i < 512; ++i) { - int orient = j; + OPJ_UINT32 orient = j; if (orient == 2) { orient = 1; } else if (orient == 1) {