This commit is contained in:
parent
e667c519cd
commit
abb0b64b7c
|
@ -104,7 +104,7 @@ impl CommandExecute for BitVecCommand {
|
|||
BinaryOperation::Xor => BitXor::bitxor,
|
||||
};
|
||||
|
||||
if self.offset as usize + bitvec.len() > PIXEL_COUNT {
|
||||
if self.offset + bitvec.len() > PIXEL_COUNT {
|
||||
error!(
|
||||
"bitmap with offset {offset} is too big ({} bytes)",
|
||||
bitvec.len()
|
||||
|
|
Loading…
Reference in a new issue