From: Włodzimierz Skiba Date: Mon, 20 Dec 2004 20:34:41 +0000 (+0000) Subject: Warning fix. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bbd030cd5c3bc05ea31d12e47fd9a8e928315658 Warning fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/mediaplayer/mediaplayer.cpp b/samples/mediaplayer/mediaplayer.cpp index d24c54c84d..09489fb7ca 100644 --- a/samples/mediaplayer/mediaplayer.cpp +++ b/samples/mediaplayer/mediaplayer.cpp @@ -487,7 +487,7 @@ void MyFrame::ResetStatus() m_mediactrl->GetPlaybackRate() ); - m_slider->SetRange(0, (m_mediactrl->Length() / 1000)); + m_slider->SetRange(0, (int)(m_mediactrl->Length() / 1000)); m_nLoops = 0; } @@ -631,7 +631,7 @@ void MyFrame::OnMediaStop(wxMediaEvent& WXUNUSED(event)) // ---------------------------------------------------------------------------- void MyTimer::Notify() { - long lPosition = (m_frame->m_mediactrl->Tell() / 1000); + long lPosition = (long)( m_frame->m_mediactrl->Tell() / 1000 ); m_frame->m_slider->SetValue(lPosition); #if wxUSE_STATUSBAR