Samuel Thibault 10 年 前
コミット
4eb4700f71
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      examples/interface/complex_interface.c

+ 1 - 1
examples/interface/complex_interface.c

@@ -137,7 +137,7 @@ static int complex_pack_data(starpu_data_handle_t handle, unsigned node, void **
 	if (ptr != NULL)
 	{
 		char *data;
-		starpu_malloc_flags(&data, *count, 0);
+		starpu_malloc_flags((void**) &data, *count, 0);
 		*ptr = data;
 		memcpy(data, complex_interface->real, complex_interface->nx*sizeof(double));
 		memcpy(data+complex_interface->nx*sizeof(double), complex_interface->imaginary, complex_interface->nx*sizeof(double));