You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
what's happening is that its expecting string.pack("<I" .. I, -1) to throw an error but it doesn't it actually just returns nothing
after more testing using this simple command line version of what that script is doing for i = 1, 3 do local umax = bit32.lshift(1, i * 8) - 1 local max = bit32.rshift(umax, 1) local min = -max-1 print("Testing") print("Result = ",pcall(string.pack, "<I" .. i, min)) end
I found that it works as intended in Roblox Studio
but fails in luau
so I'm just assuming the function isn't throwing an overflow error for whatever reason
weirdly enough what I run unpack on the packed string it produces this in luau
whereas in Roblox it well...
again for convenience here is the code for that simple test for i = 1, 3 do local umax = bit32.lshift(1, i * 8) - 1 local max = bit32.rshift(umax, 1) local min = -max-1 print("Testing") print(string.unpack(string.pack("<I" .. i, min), "<I")) end
compiled using: make config=release luau luau-analyze
compiled version: 0.503 (latest release I just downloaded the repo)
a few things to note:
I tried running make test multiple times always failed
I tried reinstalling the tests still failed
I tried compiling with cmake it still failed
its a pretty weird bug how it works in Roblox tests but not in luau tests
should also mention I'm running macOS Monterey Version 12.0.1 (21A559)
Apple M1 chip
oh and final note is that it fails for all overflow errors not just the <I one I showed off in tests that's just the first one that fails in make test
The text was updated successfully, but these errors were encountered:
Thanks! This is a bug specific to ARM architecture. It so happens that we already fixed it last week but the fix didn't make it to this repository yet. Let's keep this open, the fix should land here on Friday.
So I build luau as normal and ran make test
what's happening is that its expecting string.pack("<I" .. I, -1) to throw an error but it doesn't it actually just returns nothing
after more testing using this simple command line version of what that script is doing
for i = 1, 3 do local umax = bit32.lshift(1, i * 8) - 1 local max = bit32.rshift(umax, 1) local min = -max-1 print("Testing") print("Result = ",pcall(string.pack, "<I" .. i, min)) end
I found that it works as intended in Roblox Studio
but fails in luau
so I'm just assuming the function isn't throwing an overflow error for whatever reason
weirdly enough what I run unpack on the packed string it produces this in luau
whereas in Roblox it well...
again for convenience here is the code for that simple test
for i = 1, 3 do local umax = bit32.lshift(1, i * 8) - 1 local max = bit32.rshift(umax, 1) local min = -max-1 print("Testing") print(string.unpack(string.pack("<I" .. i, min), "<I")) end
compiled using: make config=release luau luau-analyze
compiled version: 0.503 (latest release I just downloaded the repo)
a few things to note:
I tried running make test multiple times always failed
I tried reinstalling the tests still failed
I tried compiling with cmake it still failed
its a pretty weird bug how it works in Roblox tests but not in luau tests
should also mention I'm running macOS Monterey Version 12.0.1 (21A559)
Apple M1 chip
oh and final note is that it fails for all overflow errors not just the <I one I showed off in tests that's just the first one that fails in make test
The text was updated successfully, but these errors were encountered: