Merge pull request #85 from periwinkle3125/fix-linux

Fix running on Linux
This commit is contained in:
duncathan salt 2020-03-08 14:11:48 -06:00 committed by GitHub
commit ba8a2f61d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -142,7 +142,7 @@ local cues = {
cue("Cent", {"0090", "0091", "0092", "0093", "0094"}, "0024"), cue("Cent", {"0090", "0091", "0092", "0093", "0094"}, "0024"),
cue("Jail1", {"0090", "0091", "0092", "0093", "0094", "0220"}, "0008"), cue("Jail1", {"0090", "0091", "0092", "0093", "0094", "0220"}, "0008"),
cue("Momo", {"0090", "0091", "0092", "0093", "0094", "0280", "0281"}, "0002"), cue("Momo", {"0090", "0091", "0092", "0093", "0094", "0280", "0281"}, "0002"),
cue("lounge", {"0090", "0091", "0092", "0093", "0094"}, "0002"), cue("Lounge", {"0090", "0091", "0092", "0093", "0094"}, "0002"),
cue("Jail2", {"0090", "0091", "0092", "0093", "0094", "0099"}, "0008"), cue("Jail2", {"0090", "0091", "0092", "0093", "0094", "0099"}, "0008"),
cue("Blcny1", {"0090", "0091", "0092", "0093", "0094"}, "0030"), cue("Blcny1", {"0090", "0091", "0092", "0093", "0094"}, "0030"),
cue("Priso1", {"0090", "0091", "0092", "0093", "0094"}, "0029"), cue("Priso1", {"0090", "0091", "0092", "0093", "0094"}, "0029"),

View file

@ -51,7 +51,7 @@ local function to_bits(n)
local tbl = {} local tbl = {}
local cnt = 1 local cnt = 1
while (n > 0) do while (n > 0) do
local last = math.mod(n,2) local last = math.fmod(n,2)
if(last == 1) then if(last == 1) then
tbl[cnt] = 1 tbl[cnt] = 1
else else