From 70118aa1a28036168ef697baa61142f6013f35ad Mon Sep 17 00:00:00 2001 From: mdb Date: Thu, 18 Apr 2002 00:09:17 +0000 Subject: [PATCH] Oh the bugs. Fixed problem with remove(). git-svn-id: https://samskivert.googlecode.com/svn/trunk@708 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../samskivert/src/java/com/samskivert/util/ArrayIntSet.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/samskivert/src/java/com/samskivert/util/ArrayIntSet.java b/projects/samskivert/src/java/com/samskivert/util/ArrayIntSet.java index 6debb363..0e531cb1 100644 --- a/projects/samskivert/src/java/com/samskivert/util/ArrayIntSet.java +++ b/projects/samskivert/src/java/com/samskivert/util/ArrayIntSet.java @@ -1,5 +1,5 @@ // -// $Id: ArrayIntSet.java,v 1.3 2002/04/17 02:10:18 mdb Exp $ +// $Id: ArrayIntSet.java,v 1.4 2002/04/18 00:09:17 mdb Exp $ // // samskivert library - useful routines for java programs // Copyright (C) 2001 Michael Bayne @@ -183,7 +183,7 @@ public class ArrayIntSet extends AbstractSet public boolean remove (int value) { int index = binarySearch(value); - if (index > 0) { + if (index >= 0) { System.arraycopy(_values, index+1, _values, index, --_size-index); _values[_size] = 0; return true;