mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 16:10:20 +00:00
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
This commit is contained in:
parent
924d890bfe
commit
04e3965b09
Notes:
sideshowbarker
2024-07-18 05:17:48 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/04e3965b090 Pull-request: https://github.com/SerenityOS/serenity/pull/9607
1 changed files with 1 additions and 1 deletions
|
@ -808,7 +808,7 @@ void BytecodeInterpreter::interpret(Configuration& configuration, InstructionPoi
|
|||
case Instructions::i64_shrs.value():
|
||||
return binary_numeric_operation<i64, i64, Operators::BitShiftRight>(configuration);
|
||||
case Instructions::i64_shru.value():
|
||||
return binary_numeric_operation<u64, i64, Operators::BitShiftLeft>(configuration);
|
||||
return binary_numeric_operation<u64, i64, Operators::BitShiftRight>(configuration);
|
||||
case Instructions::i64_rotl.value():
|
||||
return binary_numeric_operation<u64, i64, Operators::BitRotateLeft>(configuration);
|
||||
case Instructions::i64_rotr.value():
|
||||
|
|
Loading…
Reference in a new issue