From: Vadim Zeitlin Date: Fri, 17 May 2013 11:53:46 +0000 (+0000) Subject: Try using wxString::ToCDouble() instead of ToDouble() in wxAny case. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/142231270738bf0434c141322da98023fe40c084?ds=inline 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 --- diff --git a/tests/any/anytest.cpp b/tests/any/anytest.cpp index cf6c16dd1d..447e487730 100644 --- a/tests/any/anytest.cpp +++ b/tests/any/anytest.cpp @@ -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); }