summaryrefslogtreecommitdiff
path: root/string.c
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
commite2159ba730c387248a051f8744ac95134fcfa79d (patch)
treec48b380e0f468690570774a365cbfbdea5917c85 /string.c
parentfccc094568069e040e08ab6c8a87dbbb7712eb31 (diff)
* string.c (rb_str_intern): constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index ba2c454df8..344dcd2f74 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)",