diff --git a/src/scripting/vm/jitintern.h b/src/scripting/vm/jitintern.h index aa6dbfc09..ac3d8acf5 100644 --- a/src/scripting/vm/jitintern.h +++ b/src/scripting/vm/jitintern.h @@ -135,8 +135,23 @@ private: cc.movsd(epsilonXmm, epsilon); cc.ucomisd(epsilonXmm, tmp); - if (check) cc.ja(fail); - else cc.jna(fail); + if (check) + { + cc.jp(success); + if (i == (N - 1)) + { + cc.ja(fail); + } + else + { + cc.jna(success); + } + } + else + { + cc.jp(fail); + cc.jna(fail); + } } } }