X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1d4037aa1f081ee2273468aa6f6cc5918d5e7d14..5172800e29f9c4b3f4dfa9737f80114a61e55f1f:/tests/longlong/longlongtest.cpp?ds=sidebyside diff --git a/tests/longlong/longlongtest.cpp b/tests/longlong/longlongtest.cpp index 043a259cef..e09edae668 100644 --- a/tests/longlong/longlongtest.cpp +++ b/tests/longlong/longlongtest.cpp @@ -24,6 +24,8 @@ #include "wx/longlong.h" #include "wx/timer.h" +#if wxUSE_LONGLONG + // ---------------------------------------------------------------------------- // helpers for testing // ---------------------------------------------------------------------------- @@ -303,8 +305,8 @@ void LongLongTestCase::ToString() a.Negate(); CPPUNIT_ASSERT( a.ToString() == _T("-1311768467139281697") ); - wxLongLong llMin(LONG_MIN, 0); - CPPUNIT_ASSERT( a.ToString() == _T("-9223372036854775808") ); + wxLongLong llMin(-2147483647L - 1L, 0); + CPPUNIT_ASSERT( llMin.ToString() == _T("-9223372036854775808") ); #if wxUSE_LONGLONG_WX wxLongLongWx a1(a.GetHi(), a.GetLo()); @@ -322,3 +324,4 @@ void LongLongTestCase::ToString() } +#endif // wxUSE_LONGLONG