瀏覽代碼

Add macro _STARPU_MALLOC_CAST when checking prio_list

Corentin Salingue 8 年之前
父節點
當前提交
d825aa2667
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tests/model-checking/prio_list.c

+ 1 - 0
tests/model-checking/prio_list.c

@@ -15,6 +15,7 @@
  */
 
 #define _STARPU_MALLOC(p, s) do {p = malloc(s);} while (0)
+#define _STARPU_MALLOC_CAST(p, s, t) do {p = (t) malloc(s);} while (0)
 #define STARPU_ATTRIBUTE_UNUSED __attribute((__unused__))
 
 #ifndef NOCONFIG