From 142231270738bf0434c141322da98023fe40c084 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 17 May 2013 11:53:46 +0000 Subject: [PATCH] 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 --- tests/any/anytest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.47.2