瀏覽代碼

Avoid static analysis warnings

Samuel Thibault 8 年之前
父節點
當前提交
cb9e2e2495
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);