aboutsummaryrefslogtreecommitdiff
path: root/tests/boot-sector.h
diff options
context:
space:
mode:
authorJose Ricardo Ziviani <joserz@linux.vnet.ibm.com>2017-01-11 19:11:25 -0200
committerDavid Gibson <david@gibson.dropbear.id.au>2017-01-31 10:10:14 +1100
commit365206aeb3d0bb72043d157088a0ebcfaad851f7 (patch)
tree468a4882de8cd70c60224ab3ea0c3092a07eb60e /tests/boot-sector.h
parent0dfe952dc5c2921488a1172407857d5bb81d17a4 (diff)
downloadqemu-365206aeb3d0bb72043d157088a0ebcfaad851f7.zip
qemu-365206aeb3d0bb72043d157088a0ebcfaad851f7.tar.gz
qemu-365206aeb3d0bb72043d157088a0ebcfaad851f7.tar.bz2
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>
Diffstat (limited to 'tests/boot-sector.h')
0 files changed, 0 insertions, 0 deletions