Skip to content

Commit

Permalink
fix for ByteList comparison since there's much more sharing now
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@3657 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information
lopex committed May 15, 2007
1 parent 02aba6c commit 9d0d23b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/jruby/util/ByteList.java
Expand Up @@ -448,7 +448,7 @@ public int compareTo(Object other) {
}

public int cmp(final ByteList other) {
if (other == this || bytes == other.bytes) return 0;
if (other == this) return 0;
final int size = realSize;
final int len = Math.min(size,other.realSize);
int offset = -1;
Expand Down

0 comments on commit 9d0d23b

Please sign in to comment.