]> Creatis software - gdcm.git/blobdiff - src/gdcmopenjpeg/libopenjpeg/jp2.c
ENH: A user does not know (and should not) what we internally use for representing...
[gdcm.git] / src / gdcmopenjpeg / libopenjpeg / jp2.c
index f257eb32846cc3429fdcdd47d67bd917698deaa1..1886eafa469c8178d11e3b6efed0135ca44522a5 100644 (file)
@@ -88,7 +88,7 @@ int jp2_init_stdjp2(jp2_struct_t * jp2_struct)
   jp2_struct->brand = JP2_JP2;   /* BR         */
   jp2_struct->minversion = 0;   /* MinV       */
   jp2_struct->numcl = 1;
-  jp2_struct->cl = (int *) malloc(jp2_struct->numcl * sizeof(int));
+  jp2_struct->cl = (unsigned int *) malloc(jp2_struct->numcl * sizeof(int));
   jp2_struct->cl[0] = JP2_JP2;   /* CL0 : JP2  */
 
   jp2_struct->C = 7;      /* C : Always 7*/