From 3f5b474b16c3216d80e76711eea79a7cb3aa802e Mon Sep 17 00:00:00 2001 From: Mickael Savinaud Date: Thu, 30 Aug 2012 16:22:40 +0000 Subject: [PATCH] [trunk] COMP: Remove compiler warning (warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]) thnaks to Hans Johnson --- libopenjpeg/j2k.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libopenjpeg/j2k.c b/libopenjpeg/j2k.c index 77078e1a..ff13d877 100644 --- a/libopenjpeg/j2k.c +++ b/libopenjpeg/j2k.c @@ -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));