aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-07-23 12:50:36 +0200
committerThomas White <taw@physics.org>2021-07-23 12:50:36 +0200
commitd877680fd03083a696ee5c6a23d7c6b67b36a0e8 (patch)
treecbaf190fabf0f005e806ef260de680db3056b2c2 /libcrystfel/src
parenta8e71ba4c7e1b5b9cdb556155b3ebd8dd4daa861 (diff)
asdf: Rename shadow variable
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/indexers/asdf.c6
1 files changed, 3 insertions, 3 deletions
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;
}
}