mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
Avoid always-true and signed/unsigned comparisons.
Make empty while loops a little more obvious with a {} suffix. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6019 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -174,7 +174,7 @@ void Wiimote::InterruptChannel(const u16 channel, const void* const data, const
|
||||
if (0 == m_channel) // first interrupt/control channel sent
|
||||
{
|
||||
// clear all msgs, silly maybe
|
||||
while (wiiuse_io_read(m_wiimote));
|
||||
while (wiiuse_io_read(m_wiimote)) {};
|
||||
|
||||
// request status
|
||||
wm_request_status rpt = wm_request_status();
|
||||
@ -251,7 +251,7 @@ void Wiimote::Disconnect()
|
||||
ClearReports();
|
||||
|
||||
// clear out wiiuse queue, or maybe not, silly? idk
|
||||
while (wiiuse_io_read(m_wiimote));
|
||||
while (wiiuse_io_read(m_wiimote)) {};
|
||||
}
|
||||
|
||||
Wiimote* g_wiimotes[4];
|
||||
|
Reference in New Issue
Block a user