From 3cf0dba469e785b61e0d71795b6be4a84a942438 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Wed, 3 Mar 2021 09:47:42 +0000 Subject: [PATCH] [cache_dump] fix how needs_check flag is checked --- src/cache/superblock.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache/superblock.rs b/src/cache/superblock.rs index e98a3e9..5f7fb8f 100644 --- a/src/cache/superblock.rs +++ b/src/cache/superblock.rs @@ -98,7 +98,7 @@ fn unpack(data: &[u8]) -> IResult<&[u8], Superblock> { i, Superblock { flags: SuperblockFlags { - needs_check: (flags | 0x1) != 0, + needs_check: (flags & 0x1) != 0, }, block, version,