summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-07-18 19:55:33 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-07-18 19:56:36 +0900
commit56d983697fc7c40aa09526fd73cb4a2dd31637f0 (patch)
tree4d3e0be39a500ac30baf7320e2818b9d6f7aa1f3 /object.c
parentab37e6ee7ef6d1da8a7b9b4722466d251ace4582 (diff)
Constified a local table
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
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");