Skip to content

Commit 4b2177d

Browse files
authored
Fixed a bug with GCC 7.5.0 (#240)
1 parent b80e1b1 commit 4b2177d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

unitTests/testBuffers.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "bufferManipulation.hpp"
1515
#include "StackBuffer.hpp"
1616
#include "math.hpp"
17+
#include "limits.hpp"
1718

1819
// TPL includes
1920
#include <gtest/gtest.h>
@@ -632,13 +633,13 @@ class BufferTestWithRealloc : public BufferTestNoRealloc< BUFFER_TYPE >
632633
COMPARE_TO_REFERENCE( m_buffer, m_ref );
633634

634635
bufferManipulation::setCapacity( m_buffer, size(), MemorySpace::host, size() - 50 );
635-
m_ref.resize( size() - 50 );
636+
m_ref.resize( integerConversion< std::size_t >( size() - 50 ) );
636637

637638
COMPARE_TO_REFERENCE( m_buffer, m_ref );
638639
}
639640

640641
/**
641-
* @brief Test setCapacity.
642+
* @brief Test reserve.
642643
*/
643644
void reserve()
644645
{

0 commit comments

Comments
 (0)