From: Alan Cox Date: Thu, 14 Dec 2017 21:38:31 +0000 (+0000) Subject: kernel: another pipe 16bit fix X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=feffdd12931f7cefd1d02a63abf60f056adb8550;p=FUZIX.git kernel: another pipe 16bit fix --- diff --git a/Kernel/inode.c b/Kernel/inode.c index 3e904bd1..365fa067 100644 --- a/Kernel/inode.c +++ b/Kernel/inode.c @@ -167,7 +167,7 @@ void writei(regptr inoptr ino, uint8_t flag) /* FIXME: this will hang if you ever write > 16 * BLKSIZE in one go - needs merging into the loop */ while ((towrite = udata.u_count) > (16 * BLKSIZE) - - ino->c_node.i_size) { + (uint16_t)ino->c_node.i_size) { if (ino->c_readers == 0) { /* No readers */ udata.u_count = (usize_t)-1; udata.u_error = EPIPE;