From f1d4407044b5cd5eaabf0a53d1d7cb5d8b270ea6 Mon Sep 17 00:00:00 2001 From: lemon Date: Tue, 30 Aug 2022 20:20:06 +0200 Subject: fix some type size errors --- src/fmt.cff | 1 + 1 file changed, 1 insertion(+) (limited to 'src/fmt.cff') 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); -- cgit v1.2.3