From e6f473c3a0c8f3a70595ca58d1aa0b59a3996a90 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 19 Dec 2003 17:29:09 +0000 Subject: * misc/ruby-mode.el (ruby-calculate-indent): proper indentation inside of parentheses. [ruby-dev:22308] * hash.c (delete_if_i): do not use ST_DELETE for thread safety. [ruby-dev:21899] (not fully solved) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/mathn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/mathn.rb') diff --git a/lib/mathn.rb b/lib/mathn.rb index 26dd0b4a27..2257a4074a 100644 --- a/lib/mathn.rb +++ b/lib/mathn.rb @@ -125,7 +125,7 @@ class Rational def ** (other) if other.kind_of?(Rational) if self < 0 - return Complex(self, 0) ** other + return Complex.new!(self, 0) ** other elsif other == 0 return Rational(1,1) elsif self == 0 -- cgit v1.2.3