diff options
Diffstat (limited to 'minic/test/queen.c')
-rw-r--r-- | minic/test/queen.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/minic/test/queen.c b/minic/test/queen.c index 86058d2..40c2635 100644 --- a/minic/test/queen.c +++ b/minic/test/queen.c @@ -23,8 +23,7 @@ chk(int x, int y) { int i; int r; - r = 0; - for (i=0; i<8; i++) { + for (r=i=0; i<8; i++) { r = r + t[x + 8*i]; r = r + t[i + 8*y]; if (x+i < 8 & y+i < 8) |