aboutsummaryrefslogtreecommitdiff
path: root/src/quad.c
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-11-18 10:16:26 -0600
committertlatorre <tlatorre@uchicago.edu>2019-11-18 10:16:26 -0600
commit1e8a95d76fd30fcf4ba3949fc63a5e6ce9ec8d52 (patch)
tree858a44009650ef6b3f856e0aed5def45a60f2d5e /src/quad.c
parentb78b16d32f4ed170f4a24d290348765da198d5f0 (diff)
downloadsddm-1e8a95d76fd30fcf4ba3949fc63a5e6ce9ec8d52.tar.gz
sddm-1e8a95d76fd30fcf4ba3949fc63a5e6ce9ec8d52.tar.bz2
sddm-1e8a95d76fd30fcf4ba3949fc63a5e6ce9ec8d52.zip
fix bug in quad causing it to always return 0 when f was less than 1
Diffstat (limited to 'src/quad.c')
-rw-r--r--src/quad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quad.c b/src/quad.c
index ca5483c..8b2d754 100644
--- a/src/quad.c
+++ b/src/quad.c
@@ -312,7 +312,7 @@ int quad(event *ev, double *pos, double *t0, size_t npoints, double f)
* macroscopic distances in the detector we want to only sample the
* quad points near the start of the track, i.e. the points with the
* earliest times. */
- nresults = (int) f*nresults;
+ nresults = (int) (f*nresults);
}
/* Sort the x, y, z, and t0 columns so we can calculate the median. Note: