aboutsummaryrefslogtreecommitdiff
path: root/src/fmt.cff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-16 09:19:33 +0200
committerlemon <lsof@mailbox.org>2022-08-16 09:19:33 +0200
commit1ca77f60626666fba792db407dd11ea9b597d9cf (patch)
tree0e5ea52e457474899ad5f0076bbe658e67626925 /src/fmt.cff
parent04c7892134d49f3b295a51cc741affe9f02e374d (diff)
binary operators and more stuff
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 ");
}