[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Bug 1655708] Re: target/ppc/int_helper.c:2806: strange exp
Jose R. Ziviani
[Qemu-devel] [Bug 1655708] Re: target/ppc/int_helper.c:2806: strange expression ?
Wed, 11 Jan 2017 18:53:58 -0000
** Changed in: qemu
Assignee: (unassigned) => Jose R. Ziviani (jrziviani)
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
target/ppc/int_helper.c:2806: strange expression ?
Status in QEMU:
target/ppc/int_helper.c:2806:25: warning: ‘*’ in boolean context,
suggest ‘&&’ instead [-Wint-in-bool-context]
Source code is
zone_digit = (i * 2) ? b->u8[BCD_DIG_BYTE(i * 2)] >> 4 :
Which I read as
zone_digit = (i * 2) ? (b->u8[BCD_DIG_BYTE(i * 2)] >> 4) :
so I think the compiler warning is for the i * 2 lhs of the ?.
I am not sure what to suggest as a bugfix.
To manage notifications about this bug go to: