summaryrefslogtreecommitdiff
path: root/complex.c
diff options
context:
space:
mode:
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/complex.c b/complex.c
index 848d3ac8a9..42b32d4279 100644
--- a/complex.c
+++ b/complex.c
@@ -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);
}