summaryrefslogtreecommitdiff
path: root/jpeg
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-12-13 11:44:40 +0000
committerSebastian Rasmussen <sebras@gmail.com>2021-06-24 21:48:05 +0200
commit8d4f4b5e1ab9417e2e3a72b800414eceb5eb6f25 (patch)
tree9240289ddd4e2727bbd6885171e05cb08d169404 /jpeg
parent83170f0355af82b27309953fa9ff98f28ba1a860 (diff)
downloadghostpdl-8d4f4b5e1ab9417e2e3a72b800414eceb5eb6f25.tar.gz
Squash MSVC build warning.
Diffstat (limited to 'jpeg')
-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;