[trunk] COMP: Remove compiler warning (warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]) thnaks to Hans Johnson
This commit is contained in:
parent
b103fec939
commit
3f5b474b16
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue