mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Constified a local table
This commit is contained in:
parent
ab37e6ee7e
commit
56d983697f
1 changed files with 1 additions and 1 deletions
2
object.c
2
object.c
|
@ -3397,7 +3397,7 @@ rb_bool_expected(VALUE obj, const char *flagname)
|
||||||
int
|
int
|
||||||
rb_opts_exception_p(VALUE opts, int default_value)
|
rb_opts_exception_p(VALUE opts, int default_value)
|
||||||
{
|
{
|
||||||
static ID kwds[1] = {idException};
|
static const ID kwds[1] = {idException};
|
||||||
VALUE exception;
|
VALUE exception;
|
||||||
if (rb_get_kwargs(opts, kwds, 0, 1, &exception))
|
if (rb_get_kwargs(opts, kwds, 0, 1, &exception))
|
||||||
return rb_bool_expected(exception, "exception");
|
return rb_bool_expected(exception, "exception");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue