X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2Fpages.c;h=de967310454085a02ce4ce467b1fa144cf7c2ba4;hb=4d7fdf03d6fc476d7f591c9f8e5c41ebe6c06176;hp=360e71858fd5699ac0a8f933e67c4f4fad818e08;hpb=2ca58afcdf02d87e31115110ecd6c83ecc5dabc7;p=ypp-sc-tools.db-live.git 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;