version 1.4.38b
[polyglot.git] / uci.c
diff --git a/uci.c b/uci.c
index e44fa34..03c6647 100644 (file)
--- a/uci.c
+++ b/uci.c
@@ -22,7 +22,7 @@
 \r
 static const bool UseDebug = FALSE;\r
 \r
-static const int StringSize = 4096;\r
+#define StringSize ((int)4096)\r
 \r
 // variables\r
 \r
@@ -61,8 +61,8 @@ static int  mate_score     (int dist);
 // uci_set_threads()\r
 \r
 void uci_set_threads(uci_t * uci, int n) {\r
-    ASSERT(n>=1);\r
     const char *thread_option=uci_thread_option(uci);\r
+    ASSERT(n>=1);\r
     if(thread_option){\r
         uci_send_option(uci,thread_option,"%d",n);\r
     }\r