[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] arend_1_33.3: readconnect assertion fix
From: |
Arend Bayer |
Subject: |
[gnugo-devel] arend_1_33.3: readconnect assertion fix |
Date: |
Sun, 14 Apr 2002 22:22:50 +0200 (CEST) |
- assertion in compute_connection_distances corrected
The bug in readconnect.c was just an off-by-one mistake in the assertion
itself. This fixes the bug I reported.
Arend
Index: engine/readconnect.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/readconnect.c,v
retrieving revision 1.31
diff -u -r1.31 readconnect.c
--- engine/readconnect.c 31 Mar 2002 20:46:47 -0000 1.31
+++ engine/readconnect.c 14 Apr 2002 20:18:00 -0000
@@ -2409,7 +2409,7 @@
float smallest_dist = HUGE_CONNECTION_DISTANCE;
int best_index = -1;
- gg_assert(conn->queue_end < MAX_BOARD * MAX_BOARD);
+ gg_assert(conn->queue_end <= MAX_BOARD * MAX_BOARD);
/* Find the smallest distance among the queued points. */
for (k = conn->queue_start; k < conn->queue_end; k++) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnugo-devel] arend_1_33.3: readconnect assertion fix,
Arend Bayer <=