From d657e26d35ef31314a97d42bacc3e5dc85689404 Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Sun, 24 Jun 2012 01:12:05 +0900 Subject: pacify const assignment warning --- src/struct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/struct.c') 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); -- cgit v1.2.3