Compare size with unsigned int literal

Surprisingly, some compilers (notably GCC 4.6.3) will issue a warning
when comparing a literal which is clearly positive to an unsigned type,
when looking for a suitable instantiation in Boost. This is fixed by
making the literal unsigned too, so there's no doubt.
This commit is contained in:
Roland Kaufmann
2013-10-22 23:39:49 +02:00
parent 0a69727bf7
commit 781ef04a0e
@@ -228,12 +228,12 @@ BOOST_AUTO_TEST_CASE(ReplaceKeyword) {
ParserPtr parser(new Parser());
ParserKeywordConstPtr eqldims = parser->getKeyword("EQLDIMS");
BOOST_CHECK_EQUAL( 5 , eqldims->numItems());
BOOST_CHECK_EQUAL( 5u , eqldims->numItems());
parser->loadKeywordFromFile( "testdata/parser/EQLDIMS2" );
eqldims = parser->getKeyword("EQLDIMS");
BOOST_CHECK_EQUAL( 1 , eqldims->numItems());
BOOST_CHECK_EQUAL( 1u , eqldims->numItems());
}