diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-26 00:25:16 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-26 00:25:16 +0000 |
commit | ee83dc3fe49ac23321a055a2a4b337499d2494eb (patch) | |
tree | 6312c489c7c4f0004fb9aadc1993a260c16f277f /ext | |
parent | a04aa14d3c7b517e89fb6e939837073e13d3d4a4 (diff) |
bigdecimal.c: fix missing argument
* ext/bigdecimal/bigdecimal.c (rb_rational_num, rb_rational_den):
fix missing argc argument for old ruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/bigdecimal/bigdecimal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index cdd00388d4..d1aa56c121 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -110,7 +110,7 @@ rb_rational_num(VALUE rat) #ifdef HAVE_TYPE_STRUCT_RRATIONAL return RRATIONAL(rat)->num; #else - return rb_funcall(rat, rb_intern("numerator")); + return rb_funcall(rat, rb_intern("numerator"), 0); #endif } #endif @@ -122,7 +122,7 @@ rb_rational_den(VALUE rat) #ifdef HAVE_TYPE_STRUCT_RRATIONAL return RRATIONAL(rat)->den; #else - return rb_funcall(rat, rb_intern("denominator")); + return rb_funcall(rat, rb_intern("denominator"), 0); #endif } #endif |