diff options
author | tlatorre <tlatorre@uchicago.edu> | 2019-11-18 10:16:26 -0600 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2019-11-18 10:16:26 -0600 |
commit | 1e8a95d76fd30fcf4ba3949fc63a5e6ce9ec8d52 (patch) | |
tree | 858a44009650ef6b3f856e0aed5def45a60f2d5e /src | |
parent | b78b16d32f4ed170f4a24d290348765da198d5f0 (diff) | |
download | sddm-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')
-rw-r--r-- | src/quad.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |