Skip to content

Commit

Permalink
Fix fourBytesToInt but for real -.-
Browse files Browse the repository at this point in the history
  • Loading branch information
C0D3D3V committed Dec 30, 2024
1 parent 2ca2f90 commit 01f2f20
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ public static long eigthBytesToLong(byte[] bytes) {
}

public static int fourBytesToInt(byte[] bytes) {
return (bytes[4] & 0xFF) << 24
| (bytes[5] & 0xFF) << 16
| (bytes[6] & 0xFF) << 8
| bytes[7] & 0xFF;
return (bytes[0] & 0xFF) << 24
| (bytes[1] & 0xFF) << 16
| (bytes[2] & 0xFF) << 8
| bytes[3] & 0xFF;
}

/**
Expand Down

0 comments on commit 01f2f20

Please sign in to comment.