summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2014-03-06 15:00:41 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2014-03-06 15:00:41 +0000
commit7e64eb5414c42ee4299703048864d07acb4f78fc (patch)
treed258183b3b2d6087ab315948cf61ed33b47594d7 /src/lib
parent8a959bb1f4f814d517cebb5c0378957cf598f855 (diff)
[trunk] Remove some easy warnings about sign compare reported by gcc
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/openjp2/jp2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/openjp2/jp2.c b/src/lib/openjp2/jp2.c
index 87a32abc..4a6b346e 100644
--- a/src/lib/openjp2/jp2.c
+++ b/src/lib/openjp2/jp2.c
@@ -1000,7 +1000,7 @@ OPJ_BOOL opj_jp2_read_pclr( opj_jp2_t *jp2,
for(j = 0; j < nr_entries; ++j) {
for(i = 0; i < nr_channels; ++i) {
- OPJ_INT32 bytes_to_read = (channel_size[i]+7)>>3;
+ OPJ_UINT32 bytes_to_read = (channel_size[i]+7)>>3;
if (bytes_to_read > sizeof(OPJ_UINT32))
bytes_to_read = sizeof(OPJ_UINT32);