From 3fb8f9e0ac2fecd5a7ea78025b25235d8bff19f5 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 29 Sep 2014 16:44:19 -0400 Subject: [PATCH] compile before committing ... add extra cast required to silence compiler --- libs/surfaces/wiimote/wiimote.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/surfaces/wiimote/wiimote.cc b/libs/surfaces/wiimote/wiimote.cc index 1277887c57..156b7a734c 100644 --- a/libs/surfaces/wiimote/wiimote.cc +++ b/libs/surfaces/wiimote/wiimote.cc @@ -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 (cwiid_get_data (wiimote)); + WiimoteControlProtocol *protocol = const_cast (reinterpret_cast (cwiid_get_data (wiimote))); if (protocol) { protocol->wiimote_callback (mesg_count, mesg);