summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 5e1769a792..91040b14f8 100644
--- a/string.c
+++ b/string.c
@@ -2530,7 +2530,7 @@ str_uminus(VALUE str)
return str;
}
else {
- return rb_str_freeze(rb_str_dup(str));
+ return rb_fstring(str);
}
}