Skip to content

Commit

Permalink
bugfix: unable to compile VertexList with some JDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jan 18, 2025
1 parent 95cab9a commit 7a232ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/github/stephengold/joltjni/VertexList.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2024 Stephen Gold
Copyright (c) 2024-2025 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 @@ -125,7 +125,7 @@ public void resize(int numVertices) {

int numFloats = numVertices * numAxes;
if (numFloats > buffer.capacity()) {
FloatBuffer oldBuffer = buffer.rewind();
FloatBuffer oldBuffer = (FloatBuffer) buffer.rewind();
this.buffer = Jolt.newDirectFloatBuffer(numFloats);
while (oldBuffer.hasRemaining()) {
float x = oldBuffer.get();
Expand Down

0 comments on commit 7a232ad

Please sign in to comment.