Small bug corrected: unsigned int to int conversion at line 417

This commit is contained in:
Francois-Olivier Devaux 2004-10-06 07:12:36 +00:00
parent 899439a906
commit e1278bc691
1 changed files with 1 additions and 2 deletions

View File

@ -78,7 +78,6 @@ int jp2_init_stdjp2(jp2_struct_t * jp2_struct, j2k_image_t * img)
{
int depth_0, sign, depth, i;
jp2_struct->h = img->y1 - img->y0; // HEIGHT
jp2_struct->w = img->x1 - img->x0; // WIDTH
jp2_struct->numcomps = img->numcomps; // NC
@ -415,7 +414,7 @@ int jp2_read_ftyp(jp2_struct_t * jp2_struct)
jp2_struct->cl =
(unsigned int *) malloc(jp2_struct->numcl * sizeof(unsigned int));
for (i = 0; i < jp2_struct->numcl; i++)
for (i = 0; i < (int)jp2_struct->numcl; i++)
jp2_struct->cl[i] = cio_read(4); /* CLi */
if (cio_tell() - box.init_pos != box.length) {