From: Alan Cox Date: Sun, 13 Nov 2016 00:09:59 +0000 (+0000) Subject: fsck: fix wrong check X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=c6a77aa2523a101784ce1dafad6c94e57244ae65;p=FUZIX.git fsck: fix wrong check --- diff --git a/Applications/util/fsck.c b/Applications/util/fsck.c index 72acab2c..5a431736 100644 --- a/Applications/util/fsck.c +++ b/Applications/util/fsck.c @@ -166,7 +166,7 @@ void pass1(void) ++icount; /* Check size */ - if (swizzle32(ino.i_size) < 0) { + if ((int32_t)swizzle32(ino.i_size) < 0) { printf("Inode %d offset is negative with value of %ld. Fix? ", n, (long)swizzle32(ino.i_size)); if (yes()) {