t1_generate_luts.c: fix compiler warnings
authorEven Rouault <even.rouault@spatialys.com>
Fri, 2 Jun 2017 07:36:25 +0000 (09:36 +0200)
committerEven Rouault <even.rouault@spatialys.com>
Fri, 2 Jun 2017 16:22:59 +0000 (18:22 +0200)
src/lib/openjp2/t1_generate_luts.c

index a4ce1e171b33fb1dccbd8e271beaf4c844e4b0c3..9ad6f200307afe1cf221137132a6c52d078991f1 100644 (file)
@@ -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) {