diff options
Diffstat (limited to 'include/libn.h')
-rw-r--r-- | include/libn.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/libn.h b/include/libn.h index 5201b1c..38f0a3a 100644 --- a/include/libn.h +++ b/include/libn.h @@ -294,7 +294,10 @@ int bufio·read(io·Buffer *buf, int sz, int n, void *out); typedef struct mmap·Reader { vlong len; - void* buf; + union { + byte *buf; + ubyte *ubuf; + }; } mmap·Reader; mmap·Reader mmap·open(byte *name); |