]> git.saurik.com Git - wxWidgets.git/commitdiff
g++ compilation fix after latest changes
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Nov 2008 01:11:17 +0000 (01:11 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Nov 2008 01:11:17 +0000 (01:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/cppunit.h

index 2aa1a7950fd79a25e7d307f480e6167b8a93508d..e9cfbdfd9f47d08cd66c2e36f71b7671bff5c2f1 100644 (file)
@@ -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