Skip to content

Commit

Permalink
fix int array writing shorts
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Zombii committed Dec 27, 2024
1 parent cb86e07 commit e9b5c84
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void writeInt(int i) throws IOException {

public void writeIntArray(int[] array) throws IOException {
output.writeInt(array.length);
for (int i : array) output.writeShort(i);
for (int i : array) output.writeInt(i);
}

public void writeLong(long i) throws IOException {
Expand Down Expand Up @@ -161,8 +161,6 @@ public <T extends IKeylessSerializable> void writeKeylessObject(T object) throws
IKeylessSerializer miniSerializer = newInstance();
object.write(miniSerializer);

byte[] bytes = miniSerializer.toBytes();

writeByteArray(miniSerializer.toBytes());
}

Expand Down

0 comments on commit e9b5c84

Please sign in to comment.