diff options
author | Mike Pall <mike> | 2020-05-22 02:45:47 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2020-05-22 03:10:30 +0200 |
commit | 03208c8162af9cc01ca76ee1676ca79e5abe9b60 (patch) | |
tree | 51f364bd6e922d98ce17c5f3b0ac9a37a375a76f /src/lj_vmmath.c | |
parent | 1e6e8aaa20626ac94cf907c69b0452f76e9f5fa5 (diff) | |
download | luajit-03208c8162af9cc01ca76ee1676ca79e5abe9b60.tar.gz luajit-03208c8162af9cc01ca76ee1676ca79e5abe9b60.tar.bz2 luajit-03208c8162af9cc01ca76ee1676ca79e5abe9b60.zip |
Fix math.min()/math.max() inconsistencies.
Diffstat (limited to 'src/lj_vmmath.c')
-rw-r--r-- | src/lj_vmmath.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_vmmath.c b/src/lj_vmmath.c index 2a41bcaa..e89405d7 100644 --- a/src/lj_vmmath.c +++ b/src/lj_vmmath.c | |||
@@ -50,8 +50,8 @@ double lj_vm_foldarith(double x, double y, int op) | |||
50 | #if LJ_HASJIT | 50 | #if LJ_HASJIT |
51 | case IR_ATAN2 - IR_ADD: return atan2(x, y); break; | 51 | case IR_ATAN2 - IR_ADD: return atan2(x, y); break; |
52 | case IR_LDEXP - IR_ADD: return ldexp(x, (int)y); break; | 52 | case IR_LDEXP - IR_ADD: return ldexp(x, (int)y); break; |
53 | case IR_MIN - IR_ADD: return x > y ? y : x; break; | 53 | case IR_MIN - IR_ADD: return x < y ? x : y; break; |
54 | case IR_MAX - IR_ADD: return x < y ? y : x; break; | 54 | case IR_MAX - IR_ADD: return x > y ? x : y; break; |
55 | #endif | 55 | #endif |
56 | default: return x; | 56 | default: return x; |
57 | } | 57 | } |