From 58f8c24ddb6c509bd570cd7d3232b9f006c175a5 Mon Sep 17 00:00:00 2001 From: ds-sloth <72112344+ds-sloth@users.noreply.github.com> Date: Fri, 26 Jul 2024 17:34:58 -0400 Subject: [PATCH] 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`. --- Compiler/src/BytecodeBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Compiler/src/BytecodeBuilder.cpp b/Compiler/src/BytecodeBuilder.cpp index f68884c5e..e5e650956 100644 --- a/Compiler/src/BytecodeBuilder.cpp +++ b/Compiler/src/BytecodeBuilder.cpp @@ -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)) { {