diff options
| author | Gordon Sim <gsim@apache.org> | 2012-08-15 13:50:11 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2012-08-15 13:50:11 +0000 |
| commit | 8fbfe18490706f1ef22e0001a5f5007aba297ea2 (patch) | |
| tree | 3edb196cf04ecf71cd061aab609c60d1fe92ca60 /cpp/src/tests/QueueDepth.cpp | |
| parent | 22f02be7c8324abde9e46a762d739ac091de388d (diff) | |
| download | qpid-python-8fbfe18490706f1ef22e0001a5f5007aba297ea2.tar.gz | |
QPID-4178: Mark literals as unsigned ints
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1373409 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/QueueDepth.cpp')
| -rw-r--r-- | cpp/src/tests/QueueDepth.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cpp/src/tests/QueueDepth.cpp b/cpp/src/tests/QueueDepth.cpp index 73556141ca..09b221b3a8 100644 --- a/cpp/src/tests/QueueDepth.cpp +++ b/cpp/src/tests/QueueDepth.cpp @@ -65,8 +65,8 @@ QPID_AUTO_TEST_CASE(testIncrement) QueueDepth c(8, 16); a += b; BOOST_CHECK(a == c); - BOOST_CHECK_EQUAL(8, a.getCount()); - BOOST_CHECK_EQUAL(16, a.getSize()); + BOOST_CHECK_EQUAL(8u, a.getCount()); + BOOST_CHECK_EQUAL(16u, a.getSize()); } QPID_AUTO_TEST_CASE(testDecrement) @@ -76,8 +76,8 @@ QPID_AUTO_TEST_CASE(testDecrement) QueueDepth c(2, 4); a -= b; BOOST_CHECK(a == c); - BOOST_CHECK_EQUAL(2, a.getCount()); - BOOST_CHECK_EQUAL(4, a.getSize()); + BOOST_CHECK_EQUAL(2u, a.getCount()); + BOOST_CHECK_EQUAL(4u, a.getSize()); } QPID_AUTO_TEST_CASE(testAddition) @@ -86,8 +86,8 @@ QPID_AUTO_TEST_CASE(testAddition) QueueDepth b(3, 6); QueueDepth c = a + b; - BOOST_CHECK_EQUAL(8, c.getCount()); - BOOST_CHECK_EQUAL(16, c.getSize()); + BOOST_CHECK_EQUAL(8u, c.getCount()); + BOOST_CHECK_EQUAL(16u, c.getSize()); } QPID_AUTO_TEST_CASE(testSubtraction) @@ -96,8 +96,8 @@ QPID_AUTO_TEST_CASE(testSubtraction) QueueDepth b(3, 6); QueueDepth c = a - b; - BOOST_CHECK_EQUAL(2, c.getCount()); - BOOST_CHECK_EQUAL(4, c.getSize()); + BOOST_CHECK_EQUAL(2u, c.getCount()); + BOOST_CHECK_EQUAL(4u, c.getSize()); } QPID_AUTO_TEST_SUITE_END() |
