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:
ds-sloth 2024-07-26 17:34:58 -04:00 committed by GitHub
parent 5e0779fd57
commit 58f8c24ddb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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))
{
{