From f41305f1772b806588a775c27013cd01513035ab Mon Sep 17 00:00:00 2001 From: CallumDev Date: Mon, 2 Oct 2023 13:37:06 +1030 Subject: [PATCH] Workaround dotnet/runtime#92865 --- src/WattleScript.Interpreter/Execution/VM/Instruction.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WattleScript.Interpreter/Execution/VM/Instruction.cs b/src/WattleScript.Interpreter/Execution/VM/Instruction.cs index 056ac5d7..cd839fbc 100644 --- a/src/WattleScript.Interpreter/Execution/VM/Instruction.cs +++ b/src/WattleScript.Interpreter/Execution/VM/Instruction.cs @@ -19,7 +19,7 @@ internal struct Instruction //32 bits public int NumVal { - get => (int) (_data >> 7); + get => (int) ((_data >> 7) & 0xFFFFFFFF); set => _data = (_data & ~0x7fffffff80UL) | ((ulong) (uint) value) << 7; }