Skip to content

Commit

Permalink
tests: silence warning
Browse files Browse the repository at this point in the history
  • Loading branch information
timblechmann committed Dec 3, 2023
1 parent e383cac commit bd126df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/spsc_queue_stress_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ using namespace boost::lockfree;
using namespace std;

#ifndef BOOST_LOCKFREE_STRESS_TEST
static const size_t nodes_per_thread = 100000;
static const long nodes_per_thread = 100000;
#else
static const size_t nodes_per_thread = 100000000;
static const long nodes_per_thread = 100000000;
#endif

struct spsc_queue_tester
Expand Down
2 changes: 1 addition & 1 deletion test/stack_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ BOOST_AUTO_TEST_CASE( span_push_test )

long data[ 2 ] = { 1, 2 };

BOOST_TEST_REQUIRE( stk.push( boost::span< const long >( data ) ) == 2 );
BOOST_TEST_REQUIRE( stk.push( boost::span< const long >( data ) ) == size_t( 2 ) );

long out;
BOOST_TEST_REQUIRE( stk.unsynchronized_pop( out ) );
Expand Down

0 comments on commit bd126df

Please sign in to comment.