From d877680fd03083a696ee5c6a23d7c6b67b36a0e8 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 23 Jul 2021 12:50:36 +0200 Subject: asdf: Rename shadow variable --- libcrystfel/src/indexers/asdf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libcrystfel/src') diff --git a/libcrystfel/src/indexers/asdf.c b/libcrystfel/src/indexers/asdf.c index 87fa2f54..9146fb0d 100644 --- a/libcrystfel/src/indexers/asdf.c +++ b/libcrystfel/src/indexers/asdf.c @@ -394,12 +394,12 @@ static float find_ds_fft(double *projections, int N_projections, double d_max, projections_sorted[0])); int d = 1; - double max = 0; + double maxval = 0; for ( i=1; i<=i_max; i++ ) { double a; a = sqrt(out[i][0] * out[i][0] + out[i][1] * out[i][1]); - if (a > max) { - max = a; + if (a > maxval) { + maxval = a; d = i; } } -- cgit v1.2.3