Function init_thread() should return an integer under Windows
authorMarco Costalba <mcostalba@gmail.com>
Sun, 28 Feb 2010 10:36:40 +0000 (11:36 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 28 Feb 2010 22:36:01 +0000 (23:36 +0100)
It happens that NULL is 0, but the conventional meaning is of
a zero pointer, so repleace with an explicit 0 integer value.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp

index c369bac3a98d0f64c2336f3cab725e380bc384ed..c692baf5a72e3db774b2e728f25e1c91e93b3b31 100644 (file)
@@ -2593,7 +2593,7 @@ namespace {
   DWORD WINAPI init_thread(LPVOID threadID) {
 
     TM.idle_loop(*(int*)threadID, NULL);
-    return NULL;
+    return 0;
   }
 
 #endif