Ver Fonte

LibWasm: Fix `v128.any_true` instruction

Diego Frias há 1 ano atrás
pai
commit
21c5084d23

+ 1 - 1
Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp

@@ -1677,7 +1677,7 @@ void BytecodeInterpreter::interpret(Configuration& configuration, InstructionPoi
     }
     case Instructions::v128_any_true.value(): {
         auto vector = *configuration.stack().pop().get<Value>().to<u128>();
-        configuration.stack().push(Value(static_cast<i32>(vector == 0)));
+        configuration.stack().push(Value(static_cast<i32>(vector != 0)));
         return;
     }
     case Instructions::v128_load8_lane.value():