From: Ian Jackson Date: Sat, 6 Jun 2009 19:46:36 +0000 (+0100) Subject: fix byte shift error X-Git-Tag: 1.9.2~161 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.web-live.git;a=commitdiff_plain;h=834081c7d780ba6d55d8f28328e2e3eb6c1067ab fix byte shift error --- diff --git a/pctb/pages.c b/pctb/pages.c index 360e718..de96731 100644 --- a/pctb/pages.c +++ b/pctb/pages.c @@ -229,7 +229,8 @@ static CanonImage *convert_page(Snapshot *sn) { long xrgb= XGetPixel(sn, x, y); int i; rgb= 0; - for (i=0; i<3; i++, rgb <<= 8) { + for (i=0; i<3; i++) { + rgb <<= 8; unsigned long sample= ((xrgb << shiftmasks[i].lshift) >> shiftmasks[i].rshift) & SAMPLEMASK;