[trunk] COMP: Remove compiler warning (warning: comparison of unsigned expression...
authorMickael Savinaud <savmickael@users.noreply.github.com>
Thu, 30 Aug 2012 16:22:40 +0000 (16:22 +0000)
committerMickael Savinaud <savmickael@users.noreply.github.com>
Thu, 30 Aug 2012 16:22:40 +0000 (16:22 +0000)
libopenjpeg/j2k.c

index 77078e1a27ee04ca9fa59245b8471214cc64c39d..ff13d87772cd7e16c30d657423b00d276378df18 100644 (file)
@@ -4064,7 +4064,7 @@ opj_bool opj_j2k_read_sot ( opj_j2k_v2_t *p_j2k,
                 static OPJ_UINT32 backup_tileno = 0;
 
                 /* tileno is negative or larger than the number of tiles!!! */
-                if ((tileno < 0) || (tileno > (l_cp->tw * l_cp->th))) {
+                if (tileno > (l_cp->tw * l_cp->th)) {
                         opj_event_msg_v2(p_manager, EVT_ERROR,
                                         "JPWL: bad tile number (%d out of a maximum of %d)\n",
                                         tileno, (l_cp->tw * l_cp->th));