aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-01-21 17:39:48 +0100
committerMattias Andrée <maandree@operamail.com>2014-01-21 17:39:48 +0100
commited0d1e196c74539efb2e0d4794d29f652c2345ed (patch)
tree7ba5b05019b60c85e878bb594cbd68b3bd70faaa /src
parentm doc (diff)
downloadalgorithms-and-data-structures-ed0d1e196c74539efb2e0d4794d29f652c2345ed.tar.gz
algorithms-and-data-structures-ed0d1e196c74539efb2e0d4794d29f652c2345ed.tar.bz2
algorithms-and-data-structures-ed0d1e196c74539efb2e0d4794d29f652c2345ed.tar.xz
which elem is found does not matter
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-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_ =