summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/stopwatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stopwatch.c b/lib/stopwatch.c
index 2e69d8189..54a85edb4 100644
--- a/lib/stopwatch.c
+++ b/lib/stopwatch.c
@@ -104,7 +104,7 @@ comp_samples(const void *left, const void *right)
const double *left_d = left;
const double *right_d = right;
- return (int) *right_d - *left_d;
+ return *right_d > *left_d ? -1 : *right_d < *left_d;
}
/* Calculate the percentile using the P-square algorithm. For more