Skip to content

Commit

Permalink
BytecodeBuilder.cpp: fix invalid assumption that int32_t aliases int (#…
Browse files Browse the repository at this point in the history
…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`.
  • Loading branch information
ds-sloth authored Jul 26, 2024
1 parent 5e0779f commit 58f8c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/src/BytecodeBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
{
Expand Down

0 comments on commit 58f8c24

Please sign in to comment.