console/vtxprintf.c: Use | operator for bit operation instead of +

Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Change-Id: I478265dcd070dcf3fb2cf2c535b6ca1d86b9a3f2
Reviewed-on: https://review.coreboot.org/c/coreboot/+/67564
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
Elyes Haouas 2022-09-13 08:54:49 +02:00 committed by Felix Held
parent 0f1fb8a868
commit 23f272994f
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ static int number(void (*tx_byte)(unsigned char byte, void *data), unsigned long
precision = i;
}
size -= precision;
if (!(type & (ZEROPAD + LEFT))) {
if (!(type & (ZEROPAD | LEFT))) {
while (size-- > 0)
call_tx(' '), count++;
}