From c0043c7a9607b0bd24cb127fc5eb7355489dc370 Mon Sep 17 00:00:00 2001 From: stephengold Date: Tue, 9 Jul 2024 08:13:38 -0700 Subject: [PATCH] bugfix: ambiguous template parameter on Windows --- src/main/native/glue/Shape.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/native/glue/Shape.cpp b/src/main/native/glue/Shape.cpp index 4fce6b2d..031d9701 100644 --- a/src/main/native/glue/Shape.cpp +++ b/src/main/native/glue/Shape.cpp @@ -53,8 +53,8 @@ JNIEXPORT void JNICALL Java_com_github_stephengold_joltjni_Shape_copyDebugTriang pSh->GetTrianglesStart(context, AABox::sBiggest(), Vec3::sZero(), Quat::sIdentity(), Vec3::sReplicate(1.0f)); while (numTriangles > 0) { - int maxRequest = std::max( - numTriangles, Shape::cGetTrianglesMinTrianglesRequested); + int maxRequest = std::max((int) numTriangles, + Shape::cGetTrianglesMinTrianglesRequested); uint numTrianglesCopied = pSh->GetTrianglesNext(context, maxRequest, pFloat3); JPH_ASSERT(numTrianglesCopied <= numTriangles);