Explorar el Código

Avoid static analysis warnings

Samuel Thibault hace 8 años
padre
commit
cb9e2e2495
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/datawizard/datawizard.c

+ 1 - 1
src/datawizard/datawizard.c

@@ -69,7 +69,7 @@ int __starpu_datawizard_progress(unsigned may_alloc, unsigned push_requests)
         int current_worker_id = starpu_worker_get_id();
         unsigned memnode;
 
-	if (current_worker_id == -1)
+	if (current_worker_id < 0)
 		/* Call from main application, only make RAM requests progress */
 		return ___starpu_datawizard_progress(STARPU_MAIN_RAM, may_alloc, push_requests);