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 /ext | |
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
Diffstat (limited to 'ext')
-rw-r--r-- | ext/bigdecimal/bigdecimal.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |