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
This commit is contained in:
parent
9f6ba3f102
commit
a8f4398602
@ -260,7 +260,7 @@ coerce_failed(VALUE x, VALUE y)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
coerce_rescue(VALUE arg)
|
coerce_rescue(VALUE arg, VALUE errinfo)
|
||||||
{
|
{
|
||||||
VALUE *x = (VALUE *)arg;
|
VALUE *x = (VALUE *)arg;
|
||||||
coerce_failed(x[0], x[1]);
|
coerce_failed(x[0], x[1]);
|
||||||
@ -268,7 +268,7 @@ coerce_rescue(VALUE arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
coerce_rescue_quiet(VALUE arg)
|
coerce_rescue_quiet(VALUE arg, VALUE errinfo)
|
||||||
{
|
{
|
||||||
return Qundef;
|
return Qundef;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user