diff options
author | Thomas White <taw@physics.org> | 2013-12-17 15:12:33 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-12-17 15:12:33 +0100 |
commit | 3f25930e9f0135b3714573807d06133898ea6771 (patch) | |
tree | cbf874c9c7f50afbe181cec85155aa6182c00e61 /src/diffraction.c | |
parent | 28f8385969dbdb2f8db9c95d3d431c73319e9f25 (diff) |
Fix a few compiler warnings
Diffstat (limited to 'src/diffraction.c')
-rw-r--r-- | src/diffraction.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/diffraction.c b/src/diffraction.c index b76154c2..2f764987 100644 --- a/src/diffraction.c +++ b/src/diffraction.c @@ -178,9 +178,6 @@ static double interpolate_linear(const double *ref, const unsigned char *flags, val1 = sym_lookup_intensity(ref, flags, sym, h, k, l); val2 = sym_lookup_intensity(ref, flags, sym, h+1, k, l); - val1 = val1; - val2 = val2; - return (1.0-f)*val1 + f*val2; } @@ -251,9 +248,6 @@ static double complex interpolate_phased_linear(const double *ref, ph1 = sym_lookup_phase(phases, flags, sym, h, k, l); ph2 = sym_lookup_phase(phases, flags, sym, h+1, k, l); - val1 = val1; - val2 = val2; - /* Calculate real and imaginary parts */ re1 = val1 * cos(ph1); im1 = val1 * sin(ph1); |