X-Git-Url: http://winboard.nl/cgi-bin?p=polyglot.git;a=blobdiff_plain;f=book_make.c;h=c3d5a28bd2aed1d1c77b168bdc907c1386c8e4e2;hp=ac9a66cc2b0904bf0caf239ab2d2f2a988d87b75;hb=446bfd706349c3e1f19916a16558a2f4f7dc8e54;hpb=aaf072500213db1bed274a2dd8ebe711f21ab898 diff --git a/book_make.c b/book_make.c index ac9a66c..c3d5a28 100644 --- a/book_make.c +++ b/book_make.c @@ -20,8 +20,8 @@ // constants -static const int COUNT_MAX = 16384; -static const int StringSize = 4096; +#define COUNT_MAX ((int)16384) +#define StringSize ((int)4096) static const int NIL = -1; @@ -695,8 +695,8 @@ static void book_load(const char filename[]){ static int gen_book_moves(list_t * list, const board_t * board){ int first_pos, pos, index; entry_t entry[1]; - list_clear(list); bool found; + list_clear(list); found=FALSE; for (index = board->key & (uint64) Book->mask; (first_pos=Book->hash[index]) != NIL; index = (index+1) & Book->mask) { ASSERT(first_pos>=0&&first_possize);