aboutsummaryrefslogtreecommitdiff
path: root/src/fmt.cff
diff options
context:
space:
mode:
Diffstat (limited to 'src/fmt.cff')
-rw-r--r--src/fmt.cff1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fmt.cff b/src/fmt.cff
index 53eeb56..10508b9 100644
--- a/src/fmt.cff
+++ b/src/fmt.cff
@@ -132,6 +132,7 @@ extern fn vpfmt(proc *fn(u8, *void) void, parg *void, fmt *const u8, ap va_list)
}
fn pritype(proc typeof(proc), parg *void, ty *const Type) void {
+ assert(ty != #null, "pritype");
if ty.konst {
ps("const ");
}