mirror of
https://github.com/luau-lang/luau.git
synced 2025-03-04 11:11:41 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -1836,7 +1836,7 @@ void BytecodeBuilder::dumpConstant(std::string& result, int k) const
|
||||||
}
|
}
|
||||||
case Constant::Type_Import:
|
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))
|
if (int count = decomposeImportId(data.valueImport, id0, id1, id2))
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue