Skip to content

Commit bc96671

Browse files
committed
abs -> std::abs
Signed-off-by: Jeff Lait <jlait@andorra.sidefx.com>
1 parent 95b1a43 commit bc96671

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openvdb/openvdb/tools/MeshToVolume.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3177,7 +3177,7 @@ floodFillLeafNode(tree::LeafNode<T,Log2Dim>& leafNode, const InteriorTest& inter
31773177

31783178
// We do not assign anything for voxel close to the mesh
31793179
// This condition is aligned with the condition in traceVoxelLine
3180-
if (abs(value) <= 0.75) {
3180+
if (std::abs(value) <= 0.75) {
31813181
voxelState[offset] = NOT_ASSIGNED;
31823182
} else if (voxelState[offset] == NOT_VISITED) {
31833183

@@ -3213,7 +3213,7 @@ floodFillLeafNode(tree::LeafNode<T,Log2Dim>& leafNode, const InteriorTest& inter
32133213
(dimIdx < (int)DIM - 1) &&
32143214
(voxelState[neighOff] == NOT_VISITED)) {
32153215

3216-
if (abs(leafNode.getValue(neighOff)) <= 0.75) {
3216+
if (std::abs(leafNode.getValue(neighOff)) <= 0.75) {
32173217
voxelState[neighOff] = NOT_ASSIGNED;
32183218
} else {
32193219
offsetStack.push_back({neighOff, state});

0 commit comments

Comments
 (0)