summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-12 07:03:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-12 07:03:23 +0000
commit405266031cd9eef050cd80e5d4eeb2c19a8dd36f (patch)
treec48b380e0f468690570774a365cbfbdea5917c85
parent7501f327c03b578945655205f6f5f323f9378b05 (diff)
downloadruby-405266031cd9eef050cd80e5d4eeb2c19a8dd36f.tar.gz
ruby-405266031cd9eef050cd80e5d4eeb2c19a8dd36f.tar.xz
ruby-405266031cd9eef050cd80e5d4eeb2c19a8dd36f.zip
* string.c (rb_str_intern): constified.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index ba2c454df..344dcd2f7 100644
--- a/string.c
+++ b/string.c
@@ -5847,7 +5847,7 @@ rb_str_intern(VALUE s)
sym = ID2SYM(id);
id2 = SYM2ID(sym);
if (id != id2) {
- char *name = rb_id2name(id2);
+ const char *name = rb_id2name(id2);
if (name) {
rb_raise(rb_eRuntimeError, "symbol table overflow (%s given for %s)",