Skip to content

Commit

Permalink
correct Rectanglei#writeExternal; serailize to float instead of int
Browse files Browse the repository at this point in the history
  • Loading branch information
pollend committed May 9, 2020
1 parent 90f1853 commit 77312d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/org/joml/Rectanglei.java
Original file line number Diff line number Diff line change
Expand Up @@ -649,10 +649,10 @@ public String toString(NumberFormat formatter) {
}

public void writeExternal(ObjectOutput out) throws IOException {
out.writeFloat(minX);
out.writeFloat(minY);
out.writeFloat(maxX);
out.writeFloat(maxY);
out.writeInt(minX);
out.writeInt(minY);
out.writeInt(maxX);
out.writeInt(maxY);
}

public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
Expand Down

0 comments on commit 77312d6

Please sign in to comment.