1
0
Fork 0
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:
Nobuyoshi Nakada 2021-07-18 19:55:33 +09:00
parent ab37e6ee7e
commit 56d983697f
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -3397,7 +3397,7 @@ rb_bool_expected(VALUE obj, const char *flagname)
int
rb_opts_exception_p(VALUE opts, int default_value)
{
static ID kwds[1] = {idException};
static const ID kwds[1] = {idException};
VALUE exception;
if (rb_get_kwargs(opts, kwds, 0, 1, &exception))
return rb_bool_expected(exception, "exception");