summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
Diffstat (limited to 're.c')
-rw-r--r--re.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/re.c b/re.c
index 7e789f56df..207a77d272 100644
--- a/re.c
+++ b/re.c
@@ -2753,7 +2753,7 @@ static VALUE
reg_operand(VALUE s, int check)
{
if (SYMBOL_P(s)) {
- return rb_sym_to_s(s);
+ return rb_sym2str(s);
}
else {
return (check ? rb_str_to_str : rb_check_string_type)(s);