diff options
| author | Jose Ricardo Ziviani | 2017-01-11 22:11:25 +0100 |
|---|---|---|
| committer | David Gibson | 2017-01-31 00:10:14 +0100 |
| commit | 365206aeb3d0bb72043d157088a0ebcfaad851f7 (patch) | |
| tree | 468a4882de8cd70c60224ab3ea0c3092a07eb60e /scripts/modules | |
| parent | ppc: Prevent inifnite loop in decrementer auto-reload. (diff) | |
| download | qemu-365206aeb3d0bb72043d157088a0ebcfaad851f7.tar.gz qemu-365206aeb3d0bb72043d157088a0ebcfaad851f7.tar.xz qemu-365206aeb3d0bb72043d157088a0ebcfaad851f7.zip | |
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 'scripts/modules')
0 files changed, 0 insertions, 0 deletions
