summaryrefslogtreecommitdiff
path: root/ext/bigdecimal/bigdecimal.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-11 21:05:25 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-11 21:05:25 +0900
commit8745fa2ff0fbff67031bdecfdeea684b15515a2c (patch)
tree7c19bb21a582697118455ba76921d6577586d2c9 /ext/bigdecimal/bigdecimal.c
parentf74e23af32525b5f2db1729586c930e2becdae30 (diff)
Default to true when no exception flag [Bug #15987]
Diffstat (limited to 'ext/bigdecimal/bigdecimal.c')
-rw-r--r--ext/bigdecimal/bigdecimal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index b7b6ebb559f..652f341fb97 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -2572,7 +2572,7 @@ opts_exception_p(VALUE opts)
if (!kwds[0]) {
kwds[0] = rb_intern_const("exception");
}
- rb_get_kwargs(opts, kwds, 0, 1, &exception);
+ if (!rb_get_kwargs(opts, kwds, 0, 1, &exception)) return 1;
switch (exception) {
case Qtrue: case Qfalse:
break;