aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-24 13:02:20 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-24 13:02:20 -0500
commitd1dc7dac4b593fe8bf4053b39d30e84770623c39 (patch)
treed92683d2f74bce149655e3d36ff9bc797996a4d0
parente59ad7befb274cff2a58c983bfe25c85c38c612d (diff)
Fix cording
-rw-r--r--builtins/functions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtins/functions.c b/builtins/functions.c
index 7dc96704..7f80845a 100644
--- a/builtins/functions.c
+++ b/builtins/functions.c
@@ -167,7 +167,7 @@ public void __doctest(void *expr, TypeInfo *type, CORD expected, const char *fil
fail_source(filename, start, end,
USE_COLOR ? "\x1b[31;1mDoctest failure:\nExpected: \x1b[32;7m%s\x1b[0m\n\x1b[31;1m But got: \x1b[31;7m%s\x1b[0m\n"
: "Doctest failure:\nExpected: %s\n But got: %s\n",
- expected, expr_str);
+ CORD_to_const_char_star(expected), CORD_to_const_char_star(expr_str));
}
}
}