]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix warning.
authorMattia Barbon <mbarbon@cpan.org>
Wed, 5 Mar 2003 20:38:18 +0000 (20:38 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Wed, 5 Mar 2003 20:38:18 +0000 (20:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/progdlgg.cpp

index 0115fce66c5e5be2deb929bbbad9d43ee5d36f49..81aa707fde5f09eab9ef91f624e3862916e02faa 100644 (file)
@@ -337,7 +337,7 @@ wxProgressDialog::Update(int value, const wxString& newmsg)
     if ( (m_elapsed || m_remaining || m_estimated) && (value != 0) )
     {
         unsigned long elapsed = wxGetCurrentTime() - m_timeStart;
-        unsigned long estimated = ( (double) elapsed * m_maximum ) / ((double)value) ;
+        unsigned long estimated = (unsigned long)(( (double) elapsed * m_maximum ) / ((double)value)) ;
         unsigned long remaining = estimated - elapsed;
 
         SetTimeLabel(elapsed, m_elapsed);