From f15b1410976cdfe041a8d08ce7796866e3e3161b Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 15 Aug 2012 13:50:11 +0000 Subject: QPID-4178: Mark literals as unsigned ints git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1373409 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/QueueDepth.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'qpid/cpp/src/tests/QueueDepth.cpp') diff --git a/qpid/cpp/src/tests/QueueDepth.cpp b/qpid/cpp/src/tests/QueueDepth.cpp index 73556141ca..09b221b3a8 100644 --- a/qpid/cpp/src/tests/QueueDepth.cpp +++ b/qpid/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() -- cgit v1.2.1