From 56d983697fc7c40aa09526fd73cb4a2dd31637f0 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 18 Jul 2021 19:55:33 +0900 Subject: [PATCH] Constified a local table --- object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/object.c b/object.c index 43c97272dd..350cef0aeb 100644 --- a/object.c +++ b/object.c @@ -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");