Skip to content
Browse files

A bug in mask evaluation function has been eliminatd.

  • Loading branch information...
1 parent 80c6837 commit 27b292d1faeef131c1801d9a3d6b9ee1a909c0f7 @fukuchi fukuchi committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 mmask.c
View
6 mmask.c
@@ -132,12 +132,12 @@ __STATIC int MMask_evaluateSymbol(int width, unsigned char *frame)
int sum1 = 0, sum2 = 0;
p = frame + width * (width - 1);
- for(x=0; x<width; x++) {
+ for(x=1; x<width; x++) {
sum1 += (p[x] & 1);
}
- p = frame + width - 1;
- for(y=0; y<width; y++) {
+ p = frame + width * 2 - 1;
+ for(y=1; y<width; y++) {
sum2 += (*p & 1);
p += width;
}

0 comments on commit 27b292d

Please sign in to comment.
Something went wrong with that request. Please try again.