From b0d7895cab3ef8b405c9cf271e5e82f8dcf9258e Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 16 Oct 2001 03:27:23 +0000 Subject: * string.c (rb_str_index): wrong increment for non alphanumeric string. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/complex.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/complex.rb') diff --git a/lib/complex.rb b/lib/complex.rb index cb0a3dc56..f0a363f9c 100644 --- a/lib/complex.rb +++ b/lib/complex.rb @@ -290,7 +290,7 @@ class Complex < Numeric end def hash - @real ^ @image + @real.hash ^ @image.hash end def inspect -- cgit