From bbd030cd5c3bc05ea31d12e47fd9a8e928315658 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Mon, 20 Dec 2004 20:34:41 +0000 Subject: [PATCH] Warning fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/mediaplayer/mediaplayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.45.2