Page 1 of 1

Typhoon chess engine bug & bugfix

PostPosted: 18 Nov 2010, 04:34
by Daniel Uranga
Hi all. I have downloaded Typhoon chess engine from svn repo, and i think i found a bug:

In book.c, line 399 should be:
Code: Select all
g_fdBook = open(g_Options.szBookName,
                    O_RDWR | O_CREAT |
                    O_RANDOM | O_BINARY | _S_IREAD | _S_IWRITE, S_IRWXU );

instead of:
Code: Select all
    g_fdBook = open(g_Options.szBookName,
                    O_RDWR | O_CREAT |
                    O_RANDOM | O_BINARY | _S_IREAD | _S_IWRITE);


Without that fix, gcc 4.4.1 wont compile it, and clang 1.1 generates an executable that crashes when starting a game.

I have mailed Typhoon developer (Scott Gasch), but i received no answer. How could i proceed so others can benefit from the patch?