[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
arend_1_30.1: Re: [gnugo-devel] Influence crash
From: |
Arend Bayer |
Subject: |
arend_1_30.1: Re: [gnugo-devel] Influence crash |
Date: |
Wed, 27 Mar 2002 16:14:06 +0100 (CET) |
- influence crash fixed
On Tue, 26 Mar 2002, Daniel Bump wrote:
>
> We get a crash in the influence code with:
>
> gnugo -l gnugo-3.1.18-Rufus-200201051823.sgf --quiet -L 7 -t
This is fixed by increasing MAX_INTRUSIONS, as below. Of course I cannot
prove that the new value for MAX_INTRUSIONS is safe, either. But is should
be.
Actually, there would be a better solution to handle the "marked intrusions"
now (faster and less memory consuming), but I don't think that is an urgent
FIXME.
Arend
Index: engine/influence.h
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/influence.h,v
retrieving revision 1.9
diff -u -r1.9 influence.h
--- engine/influence.h 4 Mar 2002 06:49:08 -0000 1.9
+++ engine/influence.h 27 Mar 2002 14:54:16 -0000
@@ -74,7 +74,7 @@
*/
#define MAX_REGIONS (3*MAX_BOARD*MAX_BOARD + 1)
-#define MAX_INTRUSIONS (MAX_BOARD * MAX_BOARD)
+#define MAX_INTRUSIONS (5*MAX_BOARD * MAX_BOARD)
struct intrusion_data
{