Skip to content

Commit

Permalink
fix bit_converter.bytes_to_uint16
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Jan 19, 2025
1 parent 0b2e089 commit 0e95d9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions res/modules/bit_converter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ function bit_converter.bytes_to_uint16(bytes, order)

return
bit.bor(
bit.lshift(bytes[2], 8),
bytes[1], 0)
bit.lshift(bytes[1], 8),
bytes[2], 0)
end

function bit_converter.bytes_to_int64(bytes, order)
Expand Down

0 comments on commit 0e95d9d

Please sign in to comment.