Explorar o código

starpufft/examples/testx.c: avoid shadowed declarations

Nathalie Furmento %!s(int64=12) %!d(string=hai) anos
pai
achega
832a3455c1
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      starpufft/examples/testx.c

+ 3 - 3
starpufft/examples/testx.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 2010-2012  Université de Bordeaux 1
- * Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010, 2011, 2012, 2013  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -48,8 +48,8 @@ static void check_fftw(STARPUFFT(complex) *out, STARPUFFT(complex) *out_fftw, in
 	{
 		double diff = cabs(out[i]-out_fftw[i]);
 		double diff2 = diff * diff;
-		double size = cabs(out_fftw[i]);
-		double size2 = size * size;
+		double dsize = cabs(out_fftw[i]);
+		double size2 = dsize * dsize;
 		if (diff > max)
 			max = diff;
 		tot += diff;