[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] Assertion Failure in CVS
From: |
Arend Bayer |
Subject: |
Re: [gnugo-devel] Assertion Failure in CVS |
Date: |
Tue, 8 Jun 2004 05:34:04 +0200 (CEST) |
> Using current CVS source:
>
> ***assertion failure:
> reading.c:1292 - num_adjacent_stones >= 1 near C7***
>
> Full debug output and SGF attached
Thanks. You were pretty fast btw, the patch causing this was applied
only hours ago...
Sigh. I applied a wrong version of a patch again. The assertion was
in the wrong place (if missing == 0).
Arend
Index: engine/reading.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/reading.c,v
retrieving revision 1.148
diff -u -p -r1.148 reading.c
--- engine/reading.c 8 Jun 2004 01:26:35 -0000 1.148
+++ engine/reading.c 8 Jun 2004 03:28:25 -0000
@@ -1289,12 +1289,12 @@ fast_defense(int str, int liberties, int
* it has already been done in the first loop of this function.
*/
num_adjacent_stones = count_adjacent_stones(adjs[j], str, missing);
- ASSERT1(num_adjacent_stones >= 1, str);
if (!liberty_of_string(lib, str)
&& num_adjacent_stones >= missing) {
*move = lib;
return 1;
}
+ ASSERT1(num_adjacent_stones >= 1, str);
/* What is the total number of liberties of the friendly strings around
* the lunch?