mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
Check exception flag as a bool [Bug #15987]
This commit is contained in:
parent
cd069df365
commit
3e7d002118
12 changed files with 92 additions and 42 deletions
|
@ -477,13 +477,7 @@ nucomp_f_complex(int argc, VALUE *argv, VALUE klass)
|
|||
a2 = Qundef;
|
||||
}
|
||||
if (!NIL_P(opts)) {
|
||||
static ID kwds[1];
|
||||
VALUE exception;
|
||||
if (!kwds[0]) {
|
||||
kwds[0] = idException;
|
||||
}
|
||||
rb_get_kwargs(opts, kwds, 0, 1, &exception);
|
||||
raise = (exception != Qfalse);
|
||||
raise = rb_opts_exception_p(opts, raise);
|
||||
}
|
||||
return nucomp_convert(rb_cComplex, a1, a2, raise);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue