diff options
author | Jonathan Robie <jonathan@apache.org> | 2010-09-16 16:57:21 +0000 |
---|---|---|
committer | Jonathan Robie <jonathan@apache.org> | 2010-09-16 16:57:21 +0000 |
commit | 7b9611d44295b43233518164b7eb7a2f24ec75fb (patch) | |
tree | cc38340007d34d086bdeae6220e2f0d0fe01355f /cpp/src | |
parent | a15b7ff7ba6e7ccd85bdd0042dd7ea65d6840e99 (diff) | |
download | qpid-python-7b9611d44295b43233518164b7eb7a2f24ec75fb.tar.gz |
Adding cast to list and map size comparisons to avoid signed/unsigned comparison:
BOOST_CHECK_EQUAL(list.size(), (size_t) 0);
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@997846 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/tests/Address.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/tests/Address.cpp b/cpp/src/tests/Address.cpp index 32d14bb4b8..6339e3a435 100644 --- a/cpp/src/tests/Address.cpp +++ b/cpp/src/tests/Address.cpp @@ -92,7 +92,7 @@ QPID_AUTO_TEST_CASE(testParseOptionsWithEmptyList) Address address("my-topic; {a:[], x:101}"); BOOST_CHECK_EQUAL(std::string("my-topic"), address.getName()); Variant::List& list = address.getOptions()["a"].asList(); - BOOST_CHECK_EQUAL(list.size(), 0); + BOOST_CHECK_EQUAL(list.size(), (size_t) 0); BOOST_CHECK_EQUAL((uint16_t) 101, address.getOptions()["x"].asInt64()); } @@ -101,7 +101,7 @@ QPID_AUTO_TEST_CASE(testParseOptionsWithEmptyMap) Address address("my-topic; {a:{}, x:101}"); BOOST_CHECK_EQUAL(std::string("my-topic"), address.getName()); Variant::Map& map = address.getOptions()["a"].asMap(); - BOOST_CHECK_EQUAL(map.size(), 0); + BOOST_CHECK_EQUAL(map.size(), (size_t) 0); BOOST_CHECK_EQUAL((uint16_t) 101, address.getOptions()["x"].asInt64()); } |