Typhoon chess engine bug & bugfix

Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc

Moderator: Andres Valverde

Typhoon chess engine bug & bugfix

Postby Daniel Uranga » 18 Nov 2010, 04:34

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?
Daniel Uranga
 
Posts: 26
Joined: 01 Apr 2009, 05:15

Return to Programming and Technical Discussions

Who is online

Users browsing this forum: No registered users and 13 guests