From 30e14dfed9bc72224f8ee3480eda818eeed334d8 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 23 Nov 2017 02:25:41 +0000 Subject: [PATCH] filesys: handle 8bit bools --- Kernel/filesys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.34.1