projects
/
openjpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f3bd54
)
small change to avoid signed/unsigned warning during compilation
author
Antonin Descampe
<antonin@gmail.com>
Fri, 4 Nov 2005 11:10:38 +0000
(11:10 +0000)
committer
Antonin Descampe
<antonin@gmail.com>
Fri, 4 Nov 2005 11:10:38 +0000
(11:10 +0000)
libopenjpeg/t1.c
patch
|
blob
|
history
diff --git
a/libopenjpeg/t1.c
b/libopenjpeg/t1.c
index 59ef23304e491be82734d3e57678d31b71bd5ba2..52e34f86d14a5aecc491ea5df58f0bd00f61f762 100644
(file)
--- 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) */