summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
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 27700a3d56..6fcd7d257b 100644
--- a/string.c
+++ b/string.c
@@ -2532,7 +2532,7 @@ rb_str_intern(str)
if (strlen(RSTRING(str)->ptr) != RSTRING(str)->len)
rb_raise(rb_eArgError, "string contains `\\0'");
id = rb_intern(RSTRING(str)->ptr);
- return INT2FIX(id);
+ return ID2SYM(id);
}
static VALUE