mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
mkfs_ext2: fix a buglet introduced in last commit
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
4588775182
commit
7d8ab846d1
@ -112,11 +112,14 @@ static uint32_t has_super(uint32_t x)
|
|||||||
48828125, 129140163, 244140625, 282475249, 387420489,
|
48828125, 129140163, 244140625, 282475249, 387420489,
|
||||||
1162261467, 1220703125, 1977326743, 3486784401/* >2^31 */,
|
1162261467, 1220703125, 1977326743, 3486784401/* >2^31 */,
|
||||||
};
|
};
|
||||||
unsigned i;
|
const uint32_t *sp = supers + ARRAY_SIZE(supers)-1;
|
||||||
for (i = ARRAY_SIZE(supers); --i >= 0;)
|
while (1) {
|
||||||
if (x == supers[i])
|
if (x == *sp)
|
||||||
return 1;
|
return 1;
|
||||||
|
if (0 == *sp)
|
||||||
return 0;
|
return 0;
|
||||||
|
sp--;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user