From 781ef04a0e659bf71f1513bb408bf9b65620c1fb Mon Sep 17 00:00:00 2001 From: Roland Kaufmann Date: Tue, 22 Oct 2013 23:39:49 +0200 Subject: [PATCH] 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. --- opm/parser/eclipse/Parser/tests/ParserTests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/parser/eclipse/Parser/tests/ParserTests.cpp b/opm/parser/eclipse/Parser/tests/ParserTests.cpp index 6c5f5aa4a..1886a4634 100644 --- a/opm/parser/eclipse/Parser/tests/ParserTests.cpp +++ b/opm/parser/eclipse/Parser/tests/ParserTests.cpp @@ -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()); }