summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2024-03-13 13:49:03 -0400
committerKevin Newton <kddnewton@gmail.com>2024-03-13 14:24:53 -0400
commitfa009e392c1059c7bd56c8e69dccba17ad7cb353 (patch)
tree985a4764201855d818ae167a06588c8b3d6b2f4e
parente6a1baad48f437cee5b9a57c8cc13a8e0e98bc36 (diff)
[PRISM] Static literal strings should be fstrings
-rw-r--r--prism_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/prism_compile.c b/prism_compile.c
index 4c45164b6d..bbdd46f978 100644
--- a/prism_compile.c
+++ b/prism_compile.c
@@ -448,7 +448,7 @@ pm_static_literal_value(const pm_node_t *node, const pm_scope_node_t *scope_node
case PM_SOURCE_LINE_NODE:
return INT2FIX(pm_node_line_number(scope_node->parser, node));
case PM_STRING_NODE:
- return parse_string_encoded(scope_node, node, &((pm_string_node_t *)node)->unescaped);
+ return rb_fstring(parse_string_encoded(scope_node, node, &((pm_string_node_t *)node)->unescaped));
case PM_SYMBOL_NODE:
return ID2SYM(parse_string_symbol(scope_node, (const pm_symbol_node_t *) node));
case PM_TRUE_NODE: