Try using wxString::ToCDouble() instead of ToDouble() in wxAny case.
Apparently enabling the call to ToDouble() in the test is enough to corrupt the heap in wxOSX PPC build. No idea how can this be possible but try to check if using ToCDouble() helps... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e1bf9a5776
commit
1422312707
@ -415,7 +415,7 @@ void wxAnyTestCase::GetAs()
|
||||
res = m_anyDoubleDouble1.GetAs(&s);
|
||||
CPPUNIT_ASSERT(res);
|
||||
double d2;
|
||||
res = s.ToDouble(&d2);
|
||||
res = s.ToCDouble(&d2);
|
||||
CPPUNIT_ASSERT(res);
|
||||
CPPUNIT_ASSERT_DOUBLES_EQUAL(d2, TEST_FLOAT_CONST, FEQ_DELTA);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user