gnugo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnugo-devel] paul_3_13.8 and paul_3_13.9


From: bump
Subject: Re: [gnugo-devel] paul_3_13.8 and paul_3_13.9
Date: Sat, 21 Dec 2002 08:53:38 -0800

I had been doing a similar experiment using a slightly different
patch but identical in purpose.

Although it produces a crash in global:1 it does NOT crash
in global:4, where we have have a changed result, so I think
there may be two different bugs.

Maybe we should take this discussion of why paul_3_13.8a has
a regression delta to the list.

Dan


Index: engine/matchpat.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/matchpat.c,v
retrieving revision 1.44
diff -u -r1.44 matchpat.c
--- engine/matchpat.c   9 Dec 2002 23:04:16 -0000       1.44
+++ engine/matchpat.c   21 Dec 2002 16:45:11 -0000
@@ -484,6 +484,10 @@
     if ((board[pos] & and_mask[color-1][att]) != val_mask[color-1][att])
         goto match_failed;
 
+         if (goal != NULL && goal[pos]) {
+             gg_assert(board[pos] != EMPTY);
+         }
+
          if (goal != NULL && board[pos] != EMPTY) {
              if (goal[pos])
                    found_goal = 1;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]