diff options
author | Mike Pall <mike> | 2021-12-17 14:17:16 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2021-12-17 14:17:16 +0100 |
commit | 8b7ea5c1af6502c4ed051bb9b5ff795b8cceffc0 (patch) | |
tree | e332d8fd5872ce4884d9750545b0e44c0d4406a5 | |
parent | f3c856915b4ce7ccd24341e8ac73e8a9fd934171 (diff) | |
parent | 7b994e0ee0399caf6319865bbac88ddf62129a36 (diff) | |
download | luajit-8b7ea5c1af6502c4ed051bb9b5ff795b8cceffc0.tar.gz luajit-8b7ea5c1af6502c4ed051bb9b5ff795b8cceffc0.tar.bz2 luajit-8b7ea5c1af6502c4ed051bb9b5ff795b8cceffc0.zip |
Merge branch 'master' into v2.1
Diffstat (limited to '')
-rw-r--r-- | src/lj_opt_fold.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lj_opt_fold.c b/src/lj_opt_fold.c index 2f903e27..02e07333 100644 --- a/src/lj_opt_fold.c +++ b/src/lj_opt_fold.c | |||
@@ -1037,8 +1037,7 @@ LJFOLDF(simplify_numadd_xneg) | |||
1037 | LJFOLD(SUB any KNUM) | 1037 | LJFOLD(SUB any KNUM) |
1038 | LJFOLDF(simplify_numsub_k) | 1038 | LJFOLDF(simplify_numsub_k) |
1039 | { | 1039 | { |
1040 | lua_Number n = knumright; | 1040 | if (ir_knum(fright)->u64 == 0) /* x - (+0) ==> x */ |
1041 | if (n == 0.0) /* x - (+-0) ==> x */ | ||
1042 | return LEFTFOLD; | 1041 | return LEFTFOLD; |
1043 | return NEXTFOLD; | 1042 | return NEXTFOLD; |
1044 | } | 1043 | } |