13
0

avoid const cast warning

This commit is contained in:
Paul Davis 2014-10-24 12:16:55 -04:00
parent 65036cf3eb
commit 2f4a8cf693

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 = (WiimoteControlProtocol *)cwiid_get_data (wiimote);
WiimoteControlProtocol *protocol = reinterpret_cast<WiimoteControlProtocol*> (const_cast<void*>(cwiid_get_data (wiimote)));
if (protocol) {
protocol->wiimote_callback (mesg_count, mesg);