From: Alan Cox Date: Thu, 23 Nov 2017 02:25:41 +0000 (+0000) Subject: filesys: handle 8bit bools X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=30e14dfed9bc72224f8ee3480eda818eeed334d8;p=FUZIX.git filesys: handle 8bit bools --- diff --git a/Kernel/filesys.c b/Kernel/filesys.c index fe3838cf..8153c6f8 100644 --- a/Kernel/filesys.c +++ b/Kernel/filesys.c @@ -849,7 +849,7 @@ void wr_inode(inoptr ino) /* isdevice(ino) returns true if ino points to a device */ bool isdevice(inoptr ino) { - return (ino->c_node.i_mode & F_CDEV); + return !!(ino->c_node.i_mode & F_CDEV); }