diff options
Diffstat (limited to 'src/lib9/fmt/fmtfd.c')
-rw-r--r-- | src/lib9/fmt/fmtfd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib9/fmt/fmtfd.c b/src/lib9/fmt/fmtfd.c index d15be926..9f35f02a 100644 --- a/src/lib9/fmt/fmtfd.c +++ b/src/lib9/fmt/fmtfd.c @@ -40,7 +40,7 @@ fmtfdinit(Fmt *f, int fd, char *buf, int size) f->to = buf; f->stop = buf + size; f->flush = __fmtFdFlush; - f->farg = (void*)fd; + f->farg = (void*)(uintptr_t)fd; f->nfmt = 0; return 0; } |