Constified a local table
This commit is contained in:
parent
ab37e6ee7e
commit
56d983697f
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…
x
Reference in New Issue
Block a user