aboutsummaryrefslogtreecommitdiff
path: root/src/quad.c
diff options
context:
space:
mode:
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: