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 699777a..befde61 100644
--- a/src/fmt.cff
+++ b/src/fmt.cff
@@ -35,6 +35,7 @@ extern fn vpfmt(proc *fn(u8, *void) void, parg *void, fmt *const u8, ap va_list)
static buf [100]u8 = {};
fn pritok(proc typeof(proc), parg *void, quote bool, tok *const Tok) void {
+ if tok == #null { ps("(???)"); return; }
switch tok.t {
case :int;
sprintf(buf, "%lld", tok.u.int);