Procházet zdrojové kódy

bandwidth: fix build with compilers which refuse void * arithmetic

Samuel Thibault před 4 roky
rodič
revize
9d5771e935
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;