diff options
| author | 2022-08-30 20:20:06 +0200 | |
|---|---|---|
| committer | 2022-08-30 20:20:06 +0200 | |
| commit | f1d4407044b5cd5eaabf0a53d1d7cb5d8b270ea6 (patch) | |
| tree | 10f845b0ffa0eaf63a7bd48b6fc6c1f2582617ef /src/fmt.cff | |
| parent | dd3b12d8114176d8433f961a11b7f53c1083ade0 (diff) | |
fix some type size errors
Diffstat (limited to 'src/fmt.cff')
| -rw-r--r-- | src/fmt.cff | 1 |
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); |