From 6b0f7a3f9cb362c1b1455b6f325e5f41ffc8f861 Mon Sep 17 00:00:00 2001 From: Jeffrey Wardman Date: Wed, 27 Nov 2024 12:35:42 +1100 Subject: [PATCH] casting issue in debug mode --- src/properties.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/properties.cpp b/src/properties.cpp index 32f79e5b6..911133776 100644 --- a/src/properties.cpp +++ b/src/properties.cpp @@ -157,10 +157,11 @@ struct CheckCCW { "tol = %g, area2 = %g, base2*tol2 = %g\n" "normal = %g, %g, %g\n" "norm = %g, %g, %g\nverts: %d, %d, %d\n", - face, area / base, base, tol, area * area, base2 * tol * tol, - triNormal[face].x, triNormal[face].y, triNormal[face].z, norm.x, - norm.y, norm.z, halfedges[3 * face].startVert, - halfedges[3 * face + 1].startVert, halfedges[3 * face + 2].startVert); + static_cast(face), area / base, base, tol, area * area, + base2 * tol * tol, triNormal[face].x, triNormal[face].y, + triNormal[face].z, norm.x, norm.y, norm.z, + halfedges[3 * face].startVert, halfedges[3 * face + 1].startVert, + halfedges[3 * face + 2].startVert); } #endif return check;