From 95f090310c481a806c47161efc3377ab38dbdcd9 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 18 Aug 2006 15:27:30 +0000 Subject: [PATCH] Corrected VC++ compilo (not yet tested) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/longlong.h | 4 ++++ 1 file changed, 4 insertions(+) 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