From: Paul Cornett Date: Sat, 20 May 2006 02:39:54 +0000 (+0000) Subject: avoid float to double conversion X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3cb7a9ca75051a8f495b930cac63b33b4d111233 avoid float to double conversion git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/gauge.cpp b/src/gtk/gauge.cpp index dcff39dc23..2bcebf39ac 100644 --- a/src/gtk/gauge.cpp +++ b/src/gtk/gauge.cpp @@ -63,7 +63,7 @@ void wxGauge::DoSetGauge() _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