瀏覽代碼

mpi/src/starpu_mpi_task_insert.c: fix variable name

Nathalie Furmento 10 年之前
父節點
當前提交
87ee469ccc
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      mpi/src/starpu_mpi_task_insert.c

+ 2 - 2
mpi/src/starpu_mpi_task_insert.c

@@ -380,7 +380,7 @@ int _starpu_mpi_task_decode_v(struct starpu_codelet *codelet, int me, int nb_nod
 		}
 		else if (arg_type==STARPU_TAG_ONLY)
 		{
-			(void)va_arg(varg_list, starpu_tag_t);
+			(void)va_arg(varg_list_copy, starpu_tag_t);
 		}
 		else if (arg_type==STARPU_TAG)
 		{
@@ -388,7 +388,7 @@ int _starpu_mpi_task_decode_v(struct starpu_codelet *codelet, int me, int nb_nod
 		}
 		else if (arg_type==STARPU_NODE_SELECTION_POLICY)
 		{
-			select_node_policy = va_arg(varg_list, int);
+			select_node_policy = va_arg(varg_list_copy, int);
 		}
 		else
 		{