]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/longlong.h
suppress a CodeWarrior warning about long to int conversion (bug 1616948)
[wxWidgets.git] / include / wx / longlong.h
index 9b6553ea9a22eaaf282fb0b8b1921bc33400dd2d..b6cc42b479587bdb8c4e2508bbbf324dac5cc50d 100644 (file)
@@ -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