version 1.4.38b
[polyglot.git] / book_make.c
index ac9a66c..c3d5a28 100644 (file)
@@ -20,8 +20,8 @@
 \r
 // constants\r
 \r
-static const int COUNT_MAX = 16384;\r
-static const int StringSize = 4096;\r
+#define COUNT_MAX ((int)16384)\r
+#define StringSize ((int)4096)\r
 \r
 static const int NIL = -1;\r
 \r
@@ -695,8 +695,8 @@ static void book_load(const char filename[]){
 static int gen_book_moves(list_t * list, const board_t * board){\r
     int first_pos, pos, index;\r
     entry_t entry[1];\r
-    list_clear(list);\r
     bool found;\r
+    list_clear(list);\r
     found=FALSE;\r
     for (index = board->key & (uint64) Book->mask; (first_pos=Book->hash[index]) != NIL; index = (index+1) & Book->mask) {\r
         ASSERT(first_pos>=0&&first_pos<Book->size);\r