mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 06:15:44 +08:00
BytecodeBuilder.cpp: fix invalid assumption that int32_t aliases int (#1347)
I found that Luau failed to build on the devkitPro toolchain for 3DS. This target uses an ILP32 model, and `int32_t` is an alias of `long`. `BytecodeBuilder.cpp` includes a line where an `int` is passed by reference to a function expecting an `int32_t`.
This commit is contained in:
parent
5e0779fd57
commit
58f8c24ddb
@ -1836,7 +1836,7 @@ void BytecodeBuilder::dumpConstant(std::string& result, int k) const
|
||||
}
|
||||
case Constant::Type_Import:
|
||||
{
|
||||
int id0 = -1, id1 = -1, id2 = -1;
|
||||
int32_t id0 = -1, id1 = -1, id2 = -1;
|
||||
if (int count = decomposeImportId(data.valueImport, id0, id1, id2))
|
||||
{
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user