Fix math.min()/math.max() inconsistencies.
This commit is contained in:
@@ -50,8 +50,8 @@ double lj_vm_foldarith(double x, double y, int op)
|
||||
#if LJ_HASJIT
|
||||
case IR_ATAN2 - IR_ADD: return atan2(x, y); break;
|
||||
case IR_LDEXP - IR_ADD: return ldexp(x, (int)y); break;
|
||||
case IR_MIN - IR_ADD: return x > y ? y : x; break;
|
||||
case IR_MAX - IR_ADD: return x < y ? y : x; break;
|
||||
case IR_MIN - IR_ADD: return x < y ? x : y; break;
|
||||
case IR_MAX - IR_ADD: return x > y ? x : y; break;
|
||||
#endif
|
||||
default: return x;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user