aboutsummaryrefslogtreecommitdiffstats
path: root/src/algorithms/searching
diff options
context:
space:
mode:
Diffstat (limited to 'src/algorithms/searching')
-rw-r--r--src/algorithms/searching/MultibinarySearch.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algorithms/searching/MultibinarySearch.java b/src/algorithms/searching/MultibinarySearch.java
index c1bf400..0486af0 100644
--- a/src/algorithms/searching/MultibinarySearch.java
+++ b/src/algorithms/searching/MultibinarySearch.java
@@ -150,7 +150,7 @@ public class MultibinarySearch
*/
public static £(fun "long[][]" indexOf "${T}[] items, ${Tarray} array, SortOrder order, SearchMode mode, int start, int end")
{
- if (mode != SearchMode.FIND_ANY)
+ if (mode == SearchMode.FIND_FIRST_AND_LAST)
throw new Error("Mode not implemented"); /* TODO */
BinarySearch.SearchMode mode_ =