From: Julian Smart Date: Fri, 18 Aug 2006 15:27:30 +0000 (+0000) Subject: Corrected VC++ compilo (not yet tested) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/95f090310c481a806c47161efc3377ab38dbdcd9 Corrected VC++ compilo (not yet tested) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/longlong.h b/include/wx/longlong.h index 9b6553ea9a..b6cc42b479 100644 --- a/include/wx/longlong.h +++ b/include/wx/longlong.h @@ -411,7 +411,11 @@ public: } // convert to double +#ifdef _MSC_VER + double ToDouble() const { return wx_truncate_cast(double, (__int64) m_ll); } +#else double ToDouble() const { return wx_truncate_cast(double, m_ll); } +#endif // operations // addition