Commit 6350e5f6 authored by Jacob Kegerreis's avatar Jacob Kegerreis
Browse files

Remove silly float casting

parent 2c294f80
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment