summaryrefslogtreecommitdiff
path: root/src/lib9/fmt/fmtfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9/fmt/fmtfd.c')
-rw-r--r--src/lib9/fmt/fmtfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib9/fmt/fmtfd.c b/src/lib9/fmt/fmtfd.c
index c32abf115..dde05b7a5 100644
--- a/src/lib9/fmt/fmtfd.c
+++ b/src/lib9/fmt/fmtfd.c
@@ -43,7 +43,7 @@ fmtfdinit(Fmt *f, int fd, char *buf, int size)
f->to = buf;
f->stop = buf + size;
f->flush = __fmtFdFlush;
- f->farg = (void*)(uintptr_t)fd;
+ f->farg = (void*)(uintptr)fd;
f->flags = 0;
f->nfmt = 0;
fmtlocaleinit(f, nil, nil, nil);