From 6350e5f6bbcb7cdf9b64f12df653cfc049b656df Mon Sep 17 00:00:00 2001 From: Jacob Kegerreis <jacob.kegerreis@durham.ac.uk> Date: Mon, 21 May 2018 18:02:26 +0100 Subject: [PATCH] Remove silly float casting --- src/utilities.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utilities.h b/src/utilities.h index 02124682eb..9080ce0d22 100644 --- a/src/utilities.h +++ b/src/utilities.h @@ -37,7 +37,7 @@ INLINE static int find_value_in_monotonic_array( // Until array[index_low] < x < array[index_high=index_low+1] while (index_high - index_low > 1) { - index_mid = (index_high + index_low) / 2.f; // Middle index + index_mid = (index_high + index_low) / 2; // Middle index // Replace the low or high index with the middle if (array[index_mid] <= x) -- GitLab