From 114f0eec99341499dbb9cdd1796428540ff230d5 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Mon, 12 Oct 2015 21:48:08 -0400 Subject: cosmetics in queen.c --- minic/test/queen.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'minic') 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) -- cgit 1.4.1