From c6a77aa2523a101784ce1dafad6c94e57244ae65 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 13 Nov 2016 00:09:59 +0000 Subject: [PATCH] fsck: fix wrong check --- Applications/util/fsck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) { -- 2.34.1