From: Vadim Zeitlin Date: Sun, 2 Nov 2008 01:11:17 +0000 (+0000) Subject: g++ compilation fix after latest changes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2e9abe9e35d43eee00d5c2078ac0e35d8afcf0b1?ds=inline g++ compilation fix after latest changes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/cppunit.h b/include/wx/cppunit.h index 2aa1a7950f..e9cfbdfd9f 100644 --- a/include/wx/cppunit.h +++ b/include/wx/cppunit.h @@ -122,7 +122,7 @@ assertEquals(int expected, CppUnit::SourceLine sourceLine, const std::string& message) { - assertEquals(unsigned long(expected), actual, sourceLine, message); + assertEquals((unsigned long)expected, actual, sourceLine, message); } // we also need this one to resolve ambiguity in the tests comparing unsigned @@ -134,7 +134,7 @@ assertEquals(int expected, CppUnit::SourceLine sourceLine, const std::string& message) { - assertEquals(unsigned short(expected), actual, sourceLine, message); + assertEquals((unsigned short)expected, actual, sourceLine, message); } CPPUNIT_NS_END