Skip to content

Commit fb2afe3

Browse files
committed
fix linux compilation
1 parent 9d23bd8 commit fb2afe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/threepp/objects/BVH.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ std::unique_ptr<BVH::BVHNode> BVH::buildNode(std::vector<int>& indices, int dept
3030
}
3131

3232
// Stopping criteria: max depth reached or few enough triangles
33-
if (depth >= maxSubdivisions || indices.size() <= maxTrianglesPerNode) {
33+
if (depth >= maxSubdivisions || static_cast<int>(indices.size()) <= maxTrianglesPerNode) {
3434
node->triangleIndices = indices;
3535
return node;
3636
}

0 commit comments

Comments
 (0)