Skip to content

Commit

Permalink
bugfix: ambiguous template parameter on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jul 9, 2024
1 parent e099c8a commit c0043c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/native/glue/Shape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c0043c7

Please sign in to comment.