From 5f877e84316496556b05287e298f3d3924fc4f00 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: svn+ssh://ci.ruby-lang.org/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 cb0a3dc564..f0a363f9cb 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 v1.2.3