Searched hist:"365206 aeb3d0bb72043d157088a0ebcfaad851f7" (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/target/ppc/ |
H A D | int_helper.c | diff 365206aeb3d0bb72043d157088a0ebcfaad851f7 Wed Jan 11 15:11:25 CST 2017 Jose Ricardo Ziviani <joserz@linux.vnet.ibm.com> ppc: Fix a warning in bcdcfz code and improve BCD_DIG_BYTE macro
This commit fixes a warning in the code "(i * 2) ? .. : ..", which should be better as "i ? .. : ..", and improves the BCD_DIG_BYTE macro by placing parentheses around its argument to avoid possible expansion issues like: BCD_DIG_BYTE(i + j).
Signed-off-by: Jose Ricardo Ziviani <joserz@linux.vnet.ibm.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
|