chore: Fix some compiler warnings. (#6578)
This commit is contained in:
parent
a1d265325a
commit
b45c7188c7
3 changed files with 12 additions and 11 deletions
|
@ -110,7 +110,7 @@ void ARMul_State::Reset() {
|
|||
Reg[13] = 0x10000000;
|
||||
Reg[15] = 0;
|
||||
|
||||
Cpsr = INTBITS | SVC32MODE;
|
||||
Cpsr = static_cast<u32>(INTBITS) | SVC32MODE;
|
||||
Mode = SVC32MODE;
|
||||
Bank = SVCBANK;
|
||||
|
||||
|
|
|
@ -110,7 +110,8 @@ std::tuple<unsigned, unsigned> EmuWindow::ClipToTouchScreen(unsigned new_x, unsi
|
|||
}
|
||||
|
||||
void EmuWindow::CreateTouchState() {
|
||||
if (touch_state = global_touch_state.lock()) {
|
||||
touch_state = global_touch_state.lock();
|
||||
if (touch_state) {
|
||||
return;
|
||||
}
|
||||
touch_state = std::make_shared<TouchState>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue