chiark / gitweb /
fix byte shift error
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sat, 6 Jun 2009 19:46:36 +0000 (20:46 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sat, 6 Jun 2009 19:46:36 +0000 (20:46 +0100)
pctb/pages.c

index 360e71858fd5699ac0a8f933e67c4f4fad818e08..de967310454085a02ce4ce467b1fa144cf7c2ba4 100644 (file)
@@ -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;