Skip to content
Snippets Groups Projects
Commit 6350e5f6 authored by Jacob Kegerreis's avatar Jacob Kegerreis
Browse files

Remove silly float casting

parent 2c294f80
No related branches found
No related tags found
1 merge request!547Add generic utility function to find a value in an array
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment