summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-12 21:48:08 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-12 21:48:08 -0400
commit114f0eec99341499dbb9cdd1796428540ff230d5 (patch)
tree8ba3aa2adbe9efa44fe42a3b052215b931eb2dd8
parent7f7cf6a03254f0ab0ec58572adda1fc92b2506a6 (diff)
downloadroux-114f0eec99341499dbb9cdd1796428540ff230d5.tar.gz
cosmetics in queen.c
-rw-r--r--minic/test/queen.c3
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)