]> git.saurik.com Git - wxWidgets.git/commitdiff
Try using wxString::ToCDouble() instead of ToDouble() in wxAny case.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 17 May 2013 11:53:46 +0000 (11:53 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 17 May 2013 11:53:46 +0000 (11:53 +0000)
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

index cf6c16dd1dfe19571d99665f1ed9426a196d2ca9..447e48773062b881ee479f3de31cc691e7a1c8dc 100644 (file)
@@ -415,7 +415,7 @@ void wxAnyTestCase::GetAs()
     res = m_anyDoubleDouble1.GetAs(&s);
     CPPUNIT_ASSERT(res);
     double d2;
     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);
 }
     CPPUNIT_ASSERT(res);
     CPPUNIT_ASSERT_DOUBLES_EQUAL(d2, TEST_FLOAT_CONST, FEQ_DELTA);
 }