mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue