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:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user