Skip to content
Snippets Groups Projects
Commit 64f64413 authored by Sebastian Eibl's avatar Sebastian Eibl
Browse files

[BUGFIX] wrong usage of sizeof

parent 24ce4bfe
Branches
Tags
No related merge requests found
......@@ -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();
......
......@@ -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 ) );
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment