diff options
| author | Antonin Descampe <antonin@gmail.com> | 2005-11-04 11:10:38 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2005-11-04 11:10:38 +0000 |
| commit | 0ea26e7ba6c6951baec9d43841cfa78d4d9832ce (patch) | |
| tree | 723edd59308101bb2813a7ee763d8cd208de72e3 /libopenjpeg | |
| parent | 8f3bd54c3dd0403aae45abccdcc850eab5faeb6a (diff) | |
small change to avoid signed/unsigned warning during compilation
Diffstat (limited to 'libopenjpeg')
| -rw-r--r-- | libopenjpeg/t1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopenjpeg/t1.c b/libopenjpeg/t1.c index 59ef2330..52e34f86 100644 --- a/libopenjpeg/t1.c +++ b/libopenjpeg/t1.c @@ -896,7 +896,7 @@ void t1_decode_cblks(tcd_tile_t * tile, j2k_tcp_t * tcp) for (i = 0; i < cblk->x1 - cblk->x0; i++) { int tmp=t1_data[j][i]; if (tmp>>1==0) tilec->data[x + i + (y + j) * (tilec->x1 - tilec->x0)] = 0; - else tilec->data[x + i + (y + j) * (tilec->x1 - tilec->x0)] = tmp<0?((tmp>>1) | 0x80000000)+1:(tmp>>1); + else tilec->data[x + i + (y + j) * (tilec->x1 - tilec->x0)] = tmp<0?(tmp>>1)+1:(tmp>>1); } } } else { /* if (tcp->tccps[compno].qmfbid == 0) */ |
