http://bugs.gentoo.org/301891 --- src/tracker/sdl/SDL_Main.cpp +++ src/tracker/sdl/SDL_Main.cpp @@ -751,8 +751,8 @@ case SDLUserEventLMouseRepeat: { PPPoint p; - p.x = (pp_int32)event.data1; - p.y = (pp_int32)event.data2; + p.x = reinterpret_cast (event.data1); + p.y = reinterpret_cast (event.data2); PPEvent myEvent(eLMouseRepeat, &p, sizeof(PPPoint)); RaiseEventSerialized(&myEvent); break; @@ -761,8 +761,8 @@ case SDLUserEventRMouseRepeat: { PPPoint p; - p.x = (pp_int32)event.data1; - p.y = (pp_int32)event.data2; + p.x = reinterpret_cast (event.data1); + p.y = reinterpret_cast (event.data2); PPEvent myEvent(eRMouseRepeat, &p, sizeof(PPPoint)); RaiseEventSerialized(&myEvent); break; @@ -770,8 +770,8 @@ case SDLUserEventMidiKeyDown: { - pp_int32 note = (pp_int32)event.data1; - pp_int32 volume = (pp_int32)event.data2; + pp_int32 note = reinterpret_cast (event.data1); + pp_int32 volume = reinterpret_cast (event.data2); globalMutex->lock(); myTracker->sendNoteDown(note, volume); globalMutex->unlock(); @@ -780,7 +780,7 @@ case SDLUserEventMidiKeyUp: { - pp_int32 note = (pp_int32)event.data1; + pp_int32 note = reinterpret_cast (event.data1); globalMutex->lock(); myTracker->sendNoteUp(note); globalMutex->unlock();