X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8584b0e64b273273bad122d28b10176bd5a3bc84..a9c153392c132b64cd200a84194095e0db049ea6:/tests/controls/itemcontainertest.cpp?ds=sidebyside diff --git a/tests/controls/itemcontainertest.cpp b/tests/controls/itemcontainertest.cpp index c470749098..ab54a49702 100644 --- a/tests/controls/itemcontainertest.cpp +++ b/tests/controls/itemcontainertest.cpp @@ -171,7 +171,7 @@ void ItemContainerTestCase::ClientData() CPPUNIT_ASSERT_EQUAL(static_cast(item2data), container->GetClientObject(2)); - WX_ASSERT_FAILS_WITH_ASSERT( container->SetClientObject(-1, item0data) ); + WX_ASSERT_FAILS_WITH_ASSERT( container->SetClientObject((unsigned)-1, item0data) ); WX_ASSERT_FAILS_WITH_ASSERT( container->SetClientObject(12345, item0data) ); } @@ -199,7 +199,7 @@ void ItemContainerTestCase::VoidData() CPPUNIT_ASSERT_EQUAL(item2, container->GetClientData(2)); - WX_ASSERT_FAILS_WITH_ASSERT( container->SetClientData(-1, NULL) ); + WX_ASSERT_FAILS_WITH_ASSERT( container->SetClientData((unsigned)-1, NULL) ); WX_ASSERT_FAILS_WITH_ASSERT( container->SetClientData(12345, NULL) ); }