diff options
| author | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2004-10-06 07:12:36 +0000 |
|---|---|---|
| committer | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2004-10-06 07:12:36 +0000 |
| commit | e1278bc6910dbb0749d9b670508b9c0b09c28b0b (patch) | |
| tree | 82b294f6f0ccaf002157bf6f0c3d53430d034b8c /libopenjpeg/jp2.c | |
| parent | 899439a9063e5bf0af9da001c6541568b3efda6a (diff) | |
Small bug corrected: unsigned int to int conversion at line 417
Diffstat (limited to 'libopenjpeg/jp2.c')
| -rw-r--r-- | libopenjpeg/jp2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libopenjpeg/jp2.c b/libopenjpeg/jp2.c index 01cc83aa..31794dee 100644 --- a/libopenjpeg/jp2.c +++ b/libopenjpeg/jp2.c @@ -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) { |
