浏览代码

src/core/workers.c: starpu_gordon_func_t is a int type not a pointer

Nathalie Furmento 13 年之前
父节点
当前提交
6a62eae9fb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/workers.c

+ 1 - 1
src/core/workers.c

@@ -91,7 +91,7 @@ static int _starpu_can_use_nth_implementation(enum starpu_archtype arch, struct
 	case STARPU_GORDON_WORKER:
 	{
 		starpu_gordon_func_t func = _starpu_task_get_gordon_nth_implementation(cl, nimpl);
-		return func != NULL;
+		return func != 0;
 	}
 	default:
 		STARPU_ASSERT(!"Unknown arch type");