ruby-changes:56421
From: Nobuyoshi <ko1@a...>
Date: Thu, 11 Jul 2019 21:07:19 +0900 (JST)
Subject: [ruby-changes:56421] Nobuyoshi Nakada: 8745fa2ff0 (master): Default to true when no exception flag [Bug #15987]
https://git.ruby-lang.org/ruby.git/commit/?id=8745fa2ff0 From 8745fa2ff0fbff67031bdecfdeea684b15515a2c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 11 Jul 2019 21:05:25 +0900 Subject: Default to true when no exception flag [Bug #15987] diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index b7b6ebb..652f341 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -2572,7 +2572,7 @@ opts_exception_p(VALUE opts) https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L2572 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; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/