summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-17 02:54:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-17 02:54:50 +0000
commita8f43986020ff906a99ba453521ab7c8b3f7e0d2 (patch)
tree23fed373ce1f0684848e16ddfa5219e176e53064 /numeric.c
parent9f6ba3f10211af6e65a8a784201a4f0e77a0be8e (diff)
numeric.c: adjust types
* numeric.c (coerce_rescue, coerce_rescue_quiet): rescue functions should have errinfo too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/numeric.c b/numeric.c
index e49ce535e0..b88ce44674 100644
--- a/numeric.c
+++ b/numeric.c
@@ -260,7 +260,7 @@ coerce_failed(VALUE x, VALUE y)
}
static VALUE
-coerce_rescue(VALUE arg)
+coerce_rescue(VALUE arg, VALUE errinfo)
{
VALUE *x = (VALUE *)arg;
coerce_failed(x[0], x[1]);
@@ -268,7 +268,7 @@ coerce_rescue(VALUE arg)
}
static VALUE
-coerce_rescue_quiet(VALUE arg)
+coerce_rescue_quiet(VALUE arg, VALUE errinfo)
{
return Qundef;
}