From 3eeabc1e51b54f020af2a4dbbdf7274d7e74a30b Mon Sep 17 00:00:00 2001 From: levBagryansky <28lev11@gmail.com> Date: Wed, 1 Nov 2023 12:46:28 +0300 Subject: [PATCH] #42: aboba --- src/ChaiVM/interpreter/executor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ChaiVM/interpreter/executor.cpp b/src/ChaiVM/interpreter/executor.cpp index 4a3981e..0247ce9 100644 --- a/src/ChaiVM/interpreter/executor.cpp +++ b/src/ChaiVM/interpreter/executor.cpp @@ -260,7 +260,7 @@ void Executor::cmpgf(Instruction ins) { regFile_.acc() = (acc_f64 < r1_f64 || acc_f64 != acc_f64 || r1_f64 != r1_f64 ? static_cast(-1) - : static_cast(regFile_.acc() != regFile_[ins.r1])); + : static_cast(acc_f64 != r1_f64)); advancePc(); DO_NEXT_INS() }