From ed0d1e196c74539efb2e0d4794d29f652c2345ed Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 21 Jan 2014 17:39:48 +0100 Subject: which elem is found does not matter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/algorithms/searching/MultibinarySearch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/algorithms') 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_ = -- cgit v1.2.3-70-g09d2