gnugo-devel
[Top][All Lists]
Advanced

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

Re: [gnugo-devel] arraybound violation in 3.3.16


From: Inge Wallin
Subject: Re: [gnugo-devel] arraybound violation in 3.3.16
Date: Fri, 31 Jan 2003 17:37:39 +0100

Dan wrote:
> Inge wrote:
> 
> > What happens if k < 8?  Looks to me like pos1 is undefined in that
> > case and the test ON_BOARD(pos1) can give any random result.
> 
> Since the board is convex and both pos2 and pos are on
> the board, and pos1 is half way between them, one's first
> impression is that if pos and pos2 are on the board so is
> pos1. But I guess that if pos is on the left or right
> edge, pos2 could be on the other side of the board.

This might be right as well, but my point was that the variable pos1
was uninitialized due to the flow of the code and not due to geometric
circumstances. 

        -Inge




reply via email to

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