aboutsummaryrefslogtreecommitdiff
path: root/src/fmt.cff
diff options
context:
space:
mode:
Diffstat (limited to 'src/fmt.cff')
-rw-r--r--src/fmt.cff4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fmt.cff b/src/fmt.cff
index 60ee5f9..b66004e 100644
--- a/src/fmt.cff
+++ b/src/fmt.cff
@@ -329,12 +329,12 @@ extern fn ssfmt(fmt *const u8, ...) *const u8 {
let ap va_list #?;
ap->start(fmt);
fn sputc(c u8, arg *void) void {
- let pidx *int = arg;
+ let pidx *uint = arg;
if *pidx < buf.#len - 1 {
buf[*pidx++] = c;
}
}
- let idx = 0;
+ let idx = 0u;
vpfmt(&sputc, &idx, fmt, ap);
ap->end();
}