mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-09 22:42:46 +00:00
Code only checks if 4 bytes for `rawptr` size. However lua defines the macro (that I assume the odin code is based on) as: ``` /* @@ LUAI_IS32INT is true iff 'int' has (at least) 32 bits. */ #define LUAI_IS32INT ((UINT_MAX >> 30) >= 3) ``` This error broke `upvalues` because it would be looking for the wrong index for lua to find them at.
Lua in Odin
import lua "vendor:lua/5.4" // or whatever version you want
Lua packages
vendor:lua/5.1(version 5.1.5)vendor:lua/5.2(version 5.2.4)vendor:lua/5.3(version 5.3.6)vendor:lua/5.4(version 5.4.2)