aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lj_opt_fold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_opt_fold.c b/src/lj_opt_fold.c
index 818979b8..a85b49bc 100644
--- a/src/lj_opt_fold.c
+++ b/src/lj_opt_fold.c
@@ -1020,7 +1020,7 @@ LJFOLDF(comm_comp)
1020{ 1020{
1021 /* For non-numbers only: x <=> x ==> drop; x <> x ==> fail */ 1021 /* For non-numbers only: x <=> x ==> drop; x <> x ==> fail */
1022 if (fins->op1 == fins->op2 && !irt_isnum(fins->t)) 1022 if (fins->op1 == fins->op2 && !irt_isnum(fins->t))
1023 return CONDFOLD(fins->o & 1); 1023 return CONDFOLD((fins->o ^ (fins->o >> 1)) & 1);
1024 if (fins->op1 < fins->op2) { /* Move lower ref to the right. */ 1024 if (fins->op1 < fins->op2) { /* Move lower ref to the right. */
1025 IRRef1 tmp = fins->op1; 1025 IRRef1 tmp = fins->op1;
1026 fins->op1 = fins->op2; 1026 fins->op1 = fins->op2;