Browse Source

bandwidth: fix build with compilers which refuse void * arithmetic

Samuel Thibault 4 years ago
parent
commit
9d5771e935
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/microbenchs/bandwidth.c

+ 1 - 1
tests/microbenchs/bandwidth.c

@@ -44,7 +44,7 @@ static void **buffers;
 void bw_func(void *descr[], void *arg)
 {
 	void *src = buffers[starpu_worker_get_id()];
-	void *dst = src + size;
+	void *dst = (void*) ((uintptr_t)src + size);
 	unsigned i;
 	double start, stop;
 	int ret;