diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-12 09:47:49 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-12 09:47:49 +0000 |
commit | 5643c0d69a4df96dfe5bbf1ade833dd928a6649a (patch) | |
tree | 848176decb97e568e7eaa29377193f5de5144bb6 | |
parent | 79cd32fe3b49ef8830ce78e9ca02eb680c53318f (diff) | |
download | ruby-5643c0d69a4df96dfe5bbf1ade833dd928a6649a.tar.gz |
* ext/bigdecimal/bigdecimal.c (BigDecimalCmp): should not ignore
<=> comparison. [ruby-dev:35732]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/bigdecimal/bigdecimal.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Tue Aug 12 18:46:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org> + + * ext/bigdecimal/bigdecimal.c (BigDecimalCmp): should not ignore + <=> comparison. [ruby-dev:35732] + Tue Aug 12 18:43:10 2008 Tanaka Akira <akr@fsij.org> * enc/trans/make_transdb.rb: *.erb.c is not used anymore. diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index 2498ea4450..213d9ea149 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -734,7 +734,7 @@ BigDecimalCmp(VALUE self, VALUE r,char op) switch(op) { - case '*': return Qnil; /* any op */ + case '*': f = rb_intern("<=>");break; case '=': f = rb_intern("=="); break; case '!': f = rb_intern("!="); break; case 'G': f = rb_intern(">="); break; |