[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:
Mickael Savinaud 2012-08-30 16:22:40 +00:00
parent b103fec939
commit 3f5b474b16
1 changed files with 1 additions and 1 deletions

View File

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