minor change to avoid warnings about signedness

This commit is contained in:
Antonin Descampe 2005-11-09 10:17:51 +00:00
parent cff5df73d9
commit c9ac67cd05
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ int jp2_init_stdjp2(jp2_struct_t * jp2_struct)
jp2_struct->brand = JP2_JP2; /* BR */ jp2_struct->brand = JP2_JP2; /* BR */
jp2_struct->minversion = 0; /* MinV */ jp2_struct->minversion = 0; /* MinV */
jp2_struct->numcl = 1; 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->cl[0] = JP2_JP2; /* CL0 : JP2 */
jp2_struct->C = 7; /* C : Always 7*/ jp2_struct->C = 7; /* C : Always 7*/