Commit 23069be1 by Sebastian Eichelbaum

[CHANGE] fixed warning-> using std::abs now

parent 247c71ce
......@@ -138,7 +138,7 @@ std::vector<WHcoord> WHcoord::getPhysNbs( const WHcoord dataSize, const unsigned
{
for( coord_t k = -range; k <= range ; ++k )
{
const int test( abs( i )+abs( j )+abs( k ) );
const int test( std::abs( i ) + std::abs( j ) + std::abs( k ) );
if( test == 0 )
{
continue; // dont use the voxel itself as neighbour
......@@ -173,7 +173,7 @@ std::vector<WHcoord> WHcoord::getPhysNbs( const WHcoord dataSize, const unsigned
{
for( coord_t k =- 2; k <= 2; k += 2 )
{
const int test( abs( i )+abs( j )+abs( k ) );
const int test( std::abs( i ) + std::abs( j ) + std::abs( k ) );
if( test != 2 )
{
continue;
......
Markdown is supported
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