From 04e3965b0904c55aa5c7d34f5f024d997e914a56 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Wed, 25 Aug 2021 22:58:39 +0430 Subject: [PATCH] LibWasm: Use Operators::BitShiftRight for i64.shru Using a left-shift operator for a right shift operation is not exactly the most correct action :P --- .../Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp b/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp index d9a4651ef4c..a8f0301bdd8 100644 --- a/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp +++ b/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp @@ -808,7 +808,7 @@ void BytecodeInterpreter::interpret(Configuration& configuration, InstructionPoi case Instructions::i64_shrs.value(): return binary_numeric_operation(configuration); case Instructions::i64_shru.value(): - return binary_numeric_operation(configuration); + return binary_numeric_operation(configuration); case Instructions::i64_rotl.value(): return binary_numeric_operation(configuration); case Instructions::i64_rotr.value():