Skip to content

Commit

Permalink
partial revert of 5909e1 (broken in Visual C++)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jan 18, 2025
1 parent 7842912 commit af2b508
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/native/glue/sh/Shape.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2024-2025 Stephen Gold
Copyright (c) 2024 Stephen Gold
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -59,8 +59,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) {
const int32_t maxRequest = std::max(numTriangles,
(int32_t)Shape::cGetTrianglesMinTrianglesRequested);
const int maxRequest = std::max((int)numTriangles,
Shape::cGetTrianglesMinTrianglesRequested);
const int numTrianglesCopied
= pSh->GetTrianglesNext(context, maxRequest, pFloat3);
JPH_ASSERT(numTrianglesCopied <= numTriangles);
Expand Down

0 comments on commit af2b508

Please sign in to comment.