chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.db-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix byte shift error
[ypp-sc-tools.db-test.git]
/
pctb
/
pages.c
diff --git
a/pctb/pages.c
b/pctb/pages.c
index 360e71858fd5699ac0a8f933e67c4f4fad818e08..de967310454085a02ce4ce467b1fa144cf7c2ba4 100644
(file)
--- 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;