[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] Re: Reorientation
From: |
Gunnar Farneback |
Subject: |
Re: [gnugo-devel] Re: Reorientation |
Date: |
Mon, 15 Oct 2001 00:03:42 +0200 |
User-agent: |
EMH/1.14.1 SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/20.7 (sparc-sun-solaris2.7) (with unibyte mode) |
Teun wrote:
> >
> > This patch makes the gtp reorientation work.
>
> That patch was not correct. It also changed
> reading.tst which was not intended.
>
> The attached patch removes the part affecting
> reading.tst
The patch still looks buggy to me. Have you tested that you get the
same results as with explicit reorientation of the tests?
The problem I see is that rotate() is sometimes called for in place
transformation of vertices like this:
rotate(i, j, &i, &j, ...)
but in rotate() we have e.g.
} else if (rot == 3) {
/* rotation over 270 degrees */
*ri = j;
*rj = bs1 - i;
It seems to me like the assignment of *ri on one line may corrupt the
contents of i used on the next line.
/Gunnar
- [gnugo-devel] Reorientation, Teun Burgers, 2001/10/10
- [gnugo-devel] Re: Reorientation, Teun Burgers, 2001/10/10
- Re: [gnugo-devel] Re: Reorientation,
Gunnar Farneback <=
- [gnugo-devel] rotate(i, j, &i, &j, ...), Teun Burgers, 2001/10/15
- Re: [gnugo-devel] rotate(i, j, &i, &j, ...), Gunnar Farneback, 2001/10/15
- Re: [gnugo-devel] Reorientation, Daniel Bump, 2001/10/10
- Re: [gnugo-devel] Reorientation, Daniel Bump, 2001/10/10
- Re: [gnugo-devel] Reorientation, Gunnar Farneback, 2001/10/10