summaryrefslogtreecommitdiffhomepage
path: root/src/struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/struct.c')
-rw-r--r--src/struct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/struct.c b/src/struct.c
index 60a0edb5b..855974182 100644
--- a/src/struct.c
+++ b/src/struct.c
@@ -521,7 +521,7 @@ inspect_struct(mrb_state *mrb, mrb_value s, mrb_value dummy, int recur)
slot = ptr_members[i];
id = SYM2ID(slot);
if (mrb_is_local_id(id) || mrb_is_const_id(id)) {
- char *name;
+ const char *name;
int len;
name = mrb_sym2name_len(mrb, id, &len);