From aea0ec56b2b6caaa3690b9bf951703d2c74fd524 Mon Sep 17 00:00:00 2001 From: Alastair Houghton Date: Thu, 13 Mar 2014 13:48:15 +0000 Subject: [PATCH] Fixed a small bug. --- libImaging/Jpeg2KDecode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libImaging/Jpeg2KDecode.c b/libImaging/Jpeg2KDecode.c index b503ffa44..77615cce5 100644 --- a/libImaging/Jpeg2KDecode.c +++ b/libImaging/Jpeg2KDecode.c @@ -264,7 +264,7 @@ j2ku_graya_la(opj_image_t *in, const JPEG2KTILEINFO *tileinfo, UINT8 byte = j2ku_shift(offset + word, shift); row[0] = row[1] = row[2] = byte; - row[3] = (unsigned)(aoffset + aword) >> ashift; + row[3] = j2ku_shift(aoffset + aword, ashift); row += 4; } }