diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-19 17:29:09 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-19 17:29:09 +0000 |
| commit | dcfc52b9dcc4e81eb3c9d34fbf88fe4510b03885 (patch) | |
| tree | bfeda74860fbad889193523c115b41d54ba45d63 /lib/mathn.rb | |
| parent | 881d8ed78ad32af691f4a2ac292c575ec60cb301 (diff) | |
| download | ruby-dcfc52b9dcc4e81eb3c9d34fbf88fe4510b03885.tar.gz ruby-dcfc52b9dcc4e81eb3c9d34fbf88fe4510b03885.tar.xz ruby-dcfc52b9dcc4e81eb3c9d34fbf88fe4510b03885.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@5223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mathn.rb')
| -rw-r--r-- | lib/mathn.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mathn.rb b/lib/mathn.rb index 26dd0b4a2..2257a4074 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 |
