shift by what?
This commit is contained in:
parent
c23f9ed7fb
commit
d40c689d66
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue