From d40c689d664ee00cb510f62d2e09729ea3590e03 Mon Sep 17 00:00:00 2001 From: hkc Date: Tue, 17 Oct 2023 15:33:15 +0300 Subject: [PATCH] shift by what? --- tape-playlist.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tape-playlist.lua b/tape-playlist.lua index 25669bd..596c926 100644 --- a/tape-playlist.lua +++ b/tape-playlist.lua @@ -13,7 +13,7 @@ local function read32() local v = 0 for i = 1, 4 do local b = drive.read() - v = bit32.bor(bit32.lshift(v), b) + v = bit32.bor(bit32.lshift(v, 8), b) end return v end