diff options
| -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 2498ea445..213d9ea14 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; |
