fixed ToString() for negative long longs (bug 1101426)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -303,6 +303,9 @@ void LongLongTestCase::ToString()
|
||||
a.Negate();
|
||||
CPPUNIT_ASSERT( a.ToString() == _T("-1311768467139281697") );
|
||||
|
||||
wxLongLong llMin(LONG_MIN, 0);
|
||||
CPPUNIT_ASSERT( a.ToString() == _T("-9223372036854775808") );
|
||||
|
||||
#if wxUSE_LONGLONG_WX
|
||||
wxLongLongWx a1(a.GetHi(), a.GetLo());
|
||||
CPPUNIT_ASSERT( a1.ToString() == _T("-1311768467139281697") );
|
||||
|
Reference in New Issue
Block a user