From 8d4f4b5e1ab9417e2e3a72b800414eceb5eb6f25 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 13 Dec 2016 11:44:40 +0000 Subject: Squash MSVC build warning. --- jpeg/jdarith.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jpeg') 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; -- cgit v1.2.1