X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ebbbd51bbcedacd72feb7ff81471365ee2141b22..9c805dec6caf3c98a3797898cffe795b5b56e606:/include/wx/longlong.h diff --git a/include/wx/longlong.h b/include/wx/longlong.h index cd6b752d1e..f248bb6d21 100644 --- a/include/wx/longlong.h +++ b/include/wx/longlong.h @@ -411,7 +411,16 @@ public: } // convert to double + // + // For some completely obscure reasons compiling the cast below with + // VC6 in DLL builds only (!) results in "error C2520: conversion from + // unsigned __int64 to double not implemented, use signed __int64" so + // we must use a different version for that compiler. +#ifdef __VISUALC6__ + double ToDouble() const; +#else double ToDouble() const { return wx_truncate_cast(double, m_ll); } +#endif // operations // addition