From fd86370ccc16677e2875ed1c530f071e75d34a2e Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sun, 26 May 2013 15:03:36 -0700 Subject: [PATCH] Fixing warnings on mtmsr/mtmsrd disasm. --- src/xenia/cpu/ppc/disasm_control.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/cpu/ppc/disasm_control.cc b/src/xenia/cpu/ppc/disasm_control.cc index 6dca6c89f..67aede00f 100644 --- a/src/xenia/cpu/ppc/disasm_control.cc +++ b/src/xenia/cpu/ppc/disasm_control.cc @@ -225,14 +225,14 @@ XEDISASMR(mfmsr, 0x7C0000A6, X)(InstrData& i, InstrDisasm& d) { XEDISASMR(mtmsr, 0x7C000124, X)(InstrData& i, InstrDisasm& d) { d.Init("mtmsr", "Move To Machine State Register", 0); d.AddRegOperand(InstrRegister::kGPR, i.X.RT, InstrRegister::kRead); - d.AddSImmOperand((i.X.RA & 16 != 0) ? 1 : 0, 1); + d.AddSImmOperand((i.X.RA & 16) ? 1 : 0, 1); return d.Finish(); } XEDISASMR(mtmsrd, 0x7C000164, X)(InstrData& i, InstrDisasm& d) { d.Init("mtmsrd", "Move To Machine State Register Doubleword", 0); d.AddRegOperand(InstrRegister::kGPR, i.X.RT, InstrRegister::kRead); - d.AddSImmOperand((i.X.RA & 16 != 0) != 0 ? 1 : 0, 1); + d.AddSImmOperand((i.X.RA & 16) ? 1 : 0, 1); return d.Finish(); }