* string.c (rb_str_intern): constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fccc094568
commit
e2159ba730
2
string.c
2
string.c
@ -5847,7 +5847,7 @@ rb_str_intern(VALUE s)
|
|||||||
sym = ID2SYM(id);
|
sym = ID2SYM(id);
|
||||||
id2 = SYM2ID(sym);
|
id2 = SYM2ID(sym);
|
||||||
if (id != id2) {
|
if (id != id2) {
|
||||||
char *name = rb_id2name(id2);
|
const char *name = rb_id2name(id2);
|
||||||
|
|
||||||
if (name) {
|
if (name) {
|
||||||
rb_raise(rb_eRuntimeError, "symbol table overflow (%s given for %s)",
|
rb_raise(rb_eRuntimeError, "symbol table overflow (%s given for %s)",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user