Ver Fonte

Merge branch 'master' into v2.1

Mike Pall há 3 anos atrás
pai
commit
8b7ea5c1af
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      src/lj_opt_fold.c

+ 1 - 2
src/lj_opt_fold.c

@@ -1037,8 +1037,7 @@ LJFOLDF(simplify_numadd_xneg)
 LJFOLD(SUB any KNUM)
 LJFOLDF(simplify_numsub_k)
 {
-  lua_Number n = knumright;
-  if (n == 0.0)  /* x - (+-0) ==> x */
+  if (ir_knum(fright)->u64 == 0)  /* x - (+0) ==> x */
     return LEFTFOLD;
   return NEXTFOLD;
 }