Skip to content

Commit e9f1036

Browse files
committed
Avoid -Wsign-compare under GCC 4.4 in lambda_test.cpp
1 parent c44392f commit e9f1036

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/lambda_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ int main()
2828
using namespace boost::lambda;
2929

3030
function <unsigned(bool, double)> f1 = bind(func_impl, 15, _1, _2);
31-
BOOST_TEST_EQ( f1(true, 2.0), 30 );
31+
BOOST_TEST_EQ( f1(true, 2.0), 30u );
3232

3333
function <unsigned(double)> f2 = boost::lambda::bind(f1, false, _1);
34-
BOOST_TEST_EQ( f2(2.0), 60 );
34+
BOOST_TEST_EQ( f2(2.0), 60u );
3535

3636
function <unsigned()> f3 = boost::lambda::bind(f2, 4.0);
37-
BOOST_TEST_EQ( f3(), 120 );
37+
BOOST_TEST_EQ( f3(), 120u );
3838

3939
return boost::report_errors();
4040
}

0 commit comments

Comments
 (0)