diff --git a/src/core/Conversion.cpp b/src/core/Conversion.cpp index 9e83f098d27a3f4ea28288c6d376faa1c0e9c8fb..515e573fa6dddc1fd51c6370862b0511e6f2baca 100644 --- a/src/core/Conversion.cpp +++ b/src/core/Conversion.cpp @@ -47,7 +47,7 @@ void convert(const std::vector<bool> & from, std::vector<uint8_t> & to) void convert(const std::vector<uint8_t> & from, std::vector<bool> & to) { to.clear(); - to.resize(from.size() * sizeof(8)); + to.resize(from.size() * sizeof(uint8_t) * 8); auto unpackIt = from.begin(); auto it = to.begin(); diff --git a/tests/core/math/GenericAABBTest.cpp b/tests/core/math/GenericAABBTest.cpp index e78e6890dc94aea520e0aeaa9722ad43ec750a89..d574ba15343cb932633661886ee2cc6c8cd582dd 100644 --- a/tests/core/math/GenericAABBTest.cpp +++ b/tests/core/math/GenericAABBTest.cpp @@ -364,7 +364,7 @@ void testConstructors( const T x0, const T y0, const T z0, const T x1, const T y { GenericAABB< T > toBeCopied( x0, y0, z0, x1, y1, z1 ); - const GenericAABB< T > refAABB( toBeCopied ); + const GenericAABB< T > refAABB( toBeCopied ); // NOLINT WALBERLA_CHECK_IDENTICAL( refAABB.minCorner()[0], std::min( x0, x1 ) ); WALBERLA_CHECK_IDENTICAL( refAABB.minCorner()[1], std::min( y0, y1 ) ); WALBERLA_CHECK_IDENTICAL( refAABB.minCorner()[2], std::min( z0, z1 ) );