diff options
| author | Mickael Savinaud <savmickael@users.noreply.github.com> | 2012-08-30 16:22:40 +0000 |
|---|---|---|
| committer | Mickael Savinaud <savmickael@users.noreply.github.com> | 2012-08-30 16:22:40 +0000 |
| commit | 3f5b474b16c3216d80e76711eea79a7cb3aa802e (patch) | |
| tree | eb67380a0c5a5956ac6c44f618397b5d4e9bed56 | |
| parent | b103fec939c0983d3c20fcb8a7b7866075131bf7 (diff) | |
[trunk] COMP: Remove compiler warning (warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]) thnaks to Hans Johnson
| -rw-r--r-- | libopenjpeg/j2k.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |
