aboutsummaryrefslogtreecommitdiff
path: root/src/geometry.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-03-08 15:25:40 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:18 +0100
commit9bf9a358475082f10e9c18c44adc9551fe20747b (patch)
treea6c88fc90de34766321ad30f8ffc653a61e43a30 /src/geometry.c
parent8cb16f40549e2235ed1518a303313d67c90b2db7 (diff)
Do peak integration in double precision
This avoids some integer overflow problems
Diffstat (limited to 'src/geometry.c')
-rw-r--r--src/geometry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/geometry.c b/src/geometry.c
index 6a970400..717f5725 100644
--- a/src/geometry.c
+++ b/src/geometry.c
@@ -276,7 +276,7 @@ double integrate_all(struct image *image, RefList *reflections)
refl != NULL;
refl = next_refl(refl, iter) ) {
- float x, y, intensity;
+ double x, y, intensity;
double xp, yp;
get_detector_pos(refl, &xp, &yp);