summaryrefslogtreecommitdiff
path: root/libopenjpeg/t2.c
diff options
context:
space:
mode:
authorMickael Savinaud <savmickael@users.noreply.github.com>2011-07-29 08:50:55 +0000
committerMickael Savinaud <savmickael@users.noreply.github.com>2011-07-29 08:50:55 +0000
commit5743cca5f851a6c33462f66c2006ca5fc78f3c12 (patch)
tree79b6e8fa9323b1213d64019b2b7acfe364e81543 /libopenjpeg/t2.c
parente716a316f60f66cd5a6fb07b88b2cb8b9c815cec (diff)
solve some obvious warnings for WIN platform, increase number of warning reported on the dashboard, correct last warnings with gcc 4.4 (-Wall)
Diffstat (limited to 'libopenjpeg/t2.c')
-rw-r--r--libopenjpeg/t2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libopenjpeg/t2.c b/libopenjpeg/t2.c
index 4af8eb84..76821afc 100644
--- a/libopenjpeg/t2.c
+++ b/libopenjpeg/t2.c
@@ -149,8 +149,8 @@ static int t2_encode_packet(opj_tcd_tile_t * tile, opj_tcp_t * tcp, opj_pi_itera
c[1] = 145;
c[2] = 0;
c[3] = 4;
- c[4] = (tile->packno % 65536) / 256;
- c[5] = (tile->packno % 65536) % 256;
+ c[4] = (unsigned char)((tile->packno % 65536) / 256);
+ c[5] = (unsigned char)((tile->packno % 65536) % 256);
c += 6;
}
/* </SOP> */