summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-08-12 00:06:09 +0900
committerYukihiro Matsumoto <[email protected]>2012-08-12 00:06:09 +0900
commit3fe4b6414f9daa33ec238cb3f32b53b2dddeabf4 (patch)
tree906653ca6e97f09680366e5031b12a10f00dbaf6
parenta37c1daf33fda9749c56447ec3cead46252e65bd (diff)
downloadmruby-3fe4b6414f9daa33ec238cb3f32b53b2dddeabf4.tar.gz
mruby-3fe4b6414f9daa33ec238cb3f32b53b2dddeabf4.zip
add const qualifier to stop warning
-rw-r--r--src/kernel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel.c b/src/kernel.c
index e687c9db7..9dc085a94 100644
--- a/src/kernel.c
+++ b/src/kernel.c
@@ -600,7 +600,7 @@ obj_is_instance_of(mrb_state *mrb, mrb_value self)
static void
check_iv_name(mrb_state *mrb, mrb_sym id)
{
- char *s;
+ const char *s;
int len;
s = mrb_sym2name_len(mrb, id, &len);