shift by what?

This commit is contained in:
Casey 2023-10-17 15:33:15 +03:00
parent c23f9ed7fb
commit d40c689d66
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ local function read32()
local v = 0 local v = 0
for i = 1, 4 do for i = 1, 4 do
local b = drive.read() local b = drive.read()
v = bit32.bor(bit32.lshift(v), b) v = bit32.bor(bit32.lshift(v, 8), b)
end end
return v return v
end end