compile before committing ... add extra cast required to silence compiler

This commit is contained in:
Paul Davis 2014-09-29 16:44:19 -04:00
parent 616f53b997
commit 3fb8f9e0ac

View file

@ -449,7 +449,7 @@ wiimote_control_protocol_mesg_callback (cwiid_wiimote_t *wiimote, int mesg_count
{
DEBUG_TRACE (DEBUG::WiimoteControl, "WiimoteControlProtocol::mesg_callback init\n");
WiimoteControlProtocol *protocol = const_cast<WiimoteControlProtocol *> (cwiid_get_data (wiimote));
WiimoteControlProtocol *protocol = const_cast<WiimoteControlProtocol *> (reinterpret_cast<const WiimoteControlProtocol*> (cwiid_get_data (wiimote)));
if (protocol) {
protocol->wiimote_callback (mesg_count, mesg);