aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-11 00:49:24 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-11 00:49:24 -0400
commitbdc0b89265c66a9521717895388ce08200fcaf64 (patch)
treebec7ea7ae3e12ffb99606762774c5bb3e036cf36
parente095c7fb6429dd448c24f69a92f3cb4ebee8a8b0 (diff)
Bugfix for header prefixes
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index f0dc1b02..5534fac2 100644
--- a/compile.c
+++ b/compile.c
@@ -4528,7 +4528,7 @@ CORD compile_statement_namespace_header(env_t *env, ast_t *ast)
if (!name)
code_err(ast, "Conversions are only supported for text, struct, and enum types, not %T", ret_t);
name = CORD_all(namespace_prefix(env, env->namespace), name);
- CORD name_code = CORD_asprintf("%s$%ld", name, get_line_number(ast->file, ast->start));
+ CORD name_code = CORD_asprintf("%r$%ld", name, get_line_number(ast->file, ast->start));
return CORD_all(ret_type_code, " ", name_code, arg_signature, ";\n");
}
default: return CORD_EMPTY;