diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-04-23 19:22:22 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-04-23 19:22:22 +0000 |
commit | c4162574c46307511f0fbd142164a45db98e2a23 (patch) | |
tree | 67675333bcf9cf0476ff684fafeb4f701dc4a5cf /target-m68k/helper.c | |
parent | 67774a0444d42311c89898dd22240b5794a7f403 (diff) | |
download | qemu-c4162574c46307511f0fbd142164a45db98e2a23.zip qemu-c4162574c46307511f0fbd142164a45db98e2a23.tar.gz qemu-c4162574c46307511f0fbd142164a45db98e2a23.tar.bz2 |
m68k: fix if statement with empty body, spotted by clang
Fix clang error:
CC m68k-softmmu/helper.o
/src/qemu/target-m68k/helper.c:773:33: error: if statement has empty body [-Wempty-body]
else if (val & (1ull << 47));
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-m68k/helper.c')
-rw-r--r-- | target-m68k/helper.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target-m68k/helper.c b/target-m68k/helper.c index 2dfd48f..b4ebb14 100644 --- a/target-m68k/helper.c +++ b/target-m68k/helper.c @@ -768,10 +768,11 @@ void HELPER(mac_set_flags)(CPUState *env, uint32_t acc) { uint64_t val; val = env->macc[acc]; - if (val == 0) + if (val == 0) { env->macsr |= MACSR_Z; - else if (val & (1ull << 47)); + } else if (val & (1ull << 47)) { env->macsr |= MACSR_N; + } if (env->macsr & (MACSR_PAV0 << acc)) { env->macsr |= MACSR_V; } |