mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
fix bit_converter.bytes_to_uint16
This commit is contained in:
parent
0b2e089ecf
commit
0e95d9d1af
1 changed files with 2 additions and 2 deletions
|
|
@ -313,8 +313,8 @@ function bit_converter.bytes_to_uint16(bytes, order)
|
||||||
|
|
||||||
return
|
return
|
||||||
bit.bor(
|
bit.bor(
|
||||||
bit.lshift(bytes[2], 8),
|
bit.lshift(bytes[1], 8),
|
||||||
bytes[1], 0)
|
bytes[2], 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
function bit_converter.bytes_to_int64(bytes, order)
|
function bit_converter.bytes_to_int64(bytes, order)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue