From: Vadim Zeitlin Date: Thu, 21 Jun 2007 15:21:03 +0000 (+0000) Subject: pass double as sqrt() argument as at least Sun compiler has troubles with sqrt(2) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6164301821e1dda9bb2209bbcb75403ad470e11c pass double as sqrt() argument as at least Sun compiler has troubles with sqrt(2) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/gnome/gprint.cpp b/src/gtk/gnome/gprint.cpp index 80827bd60d..53a39a794a 100644 --- a/src/gtk/gnome/gprint.cpp +++ b/src/gtk/gnome/gprint.cpp @@ -1302,7 +1302,7 @@ void wxGnomePrintDC::DoDrawRoundedRectangle(wxCoord x, wxCoord y, wxCoord width, void wxGnomePrintDC::makeEllipticalPath(wxCoord x, wxCoord y, wxCoord width, wxCoord height) { - double r = 4 * (sqrt (2) - 1) / 3; + double r = 4 * (sqrt(2.) - 1) / 3; double halfW = 0.5 * width, halfH = 0.5 * height, halfWR = r * halfW,