]> git.saurik.com Git - wxWidgets.git/commitdiff
avoid float to double conversion
authorPaul Cornett <paulcor@bullseye.com>
Sat, 20 May 2006 02:39:54 +0000 (02:39 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Sat, 20 May 2006 02:39:54 +0000 (02:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/gauge.cpp

index dcff39dc237f42ec63d100ae5982359fc622e18b..2bcebf39ac8b6eb57f913af9f3fc0cd460cf78b8 100644 (file)
@@ -63,7 +63,7 @@ void wxGauge::DoSetGauge()
                   _T("invalid gauge position in DoSetGauge()") );
 
     gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (m_widget),
                   _T("invalid gauge position in DoSetGauge()") );
 
     gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (m_widget),
-                                   m_rangeMax ? ((float)m_gaugePos)/m_rangeMax : 0.);
+                                   m_rangeMax ? ((double)m_gaugePos)/m_rangeMax : 0.0);
 }
 
 wxSize wxGauge::DoGetBestSize() const
 }
 
 wxSize wxGauge::DoGetBestSize() const