mirror of
https://review.haiku-os.org/haiku
synced 2025-01-19 21:11:28 +01:00
33c9787d10
ParseFcMap had several logic errors. - fixed variable being initialized in the wrong part of the loops - fixed problem of ANDing bit with 0x8 instead of 0x1 - changed some variable names; 'foundStartBlock' implies a boolean but it is a block number, so it is now just 'startBlock' - added const BITS_PER_BLOCK for magic number 32 - added short-circuit for empty full or partial blocks - initialized variables to -1 when 0 is a valid value - added code to handle when the end of a block is reached and a range was started but never finished. Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk> Fixes #13526