summaryrefslogtreecommitdiff
path: root/jpeg/jdarith.c
diff options
context:
space:
mode:
Diffstat (limited to 'jpeg/jdarith.c')
-rw-r--r--jpeg/jdarith.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/jpeg/jdarith.c b/jpeg/jdarith.c
index 5533c0739..6518eb248 100644
--- a/jpeg/jdarith.c
+++ b/jpeg/jdarith.c
@@ -150,8 +150,8 @@ arith_decode (j_decompress_ptr cinfo, unsigned char *st)
*/
sv = *st;
qe = jpeg_aritab[sv & 0x7F]; /* => Qe_Value */
- nl = qe & 0xFF; qe >>= 8; /* Next_Index_LPS + Switch_MPS */
- nm = qe & 0xFF; qe >>= 8; /* Next_Index_MPS */
+ nl = (unsigned char) (qe & 0xFF); qe >>= 8; /* Next_Index_LPS + Switch_MPS */
+ nm = (unsigned char) (qe & 0xFF); qe >>= 8; /* Next_Index_MPS */
/* Decode & estimation procedures per sections D.2.4 & D.2.5 */
temp = e->a - qe;