aboutsummaryrefslogtreecommitdiff
path: root/src/diffraction.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/diffraction.c')
-rw-r--r--src/diffraction.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/diffraction.c b/src/diffraction.c
index 8b245589..b3e80e8f 100644
--- a/src/diffraction.c
+++ b/src/diffraction.c
@@ -240,8 +240,8 @@ struct rvec get_q(struct image *image, unsigned int xs, unsigned int ys,
{
struct rvec q;
float twotheta, r, az;
- float rx = 0.0;
- float ry = 0.0;
+ float rx;
+ float ry;
struct panel *p;
const unsigned int x = xs / sampling;
@@ -269,9 +269,7 @@ struct rvec get_q(struct image *image, unsigned int xs, unsigned int ys,
double get_tt(struct image *image, unsigned int xs, unsigned int ys)
{
- float r;
- float rx = 0.0;
- float ry = 0.0;
+ float r, rx, ry;
struct panel *p;
const unsigned int x = xs;