int should use abs instead of fabs?

This commit is contained in:
Alug committed 2024-12-06 08:15:42 +01:00
1 parent 95379f534d
commit 9afd00dda7
1 file changed
+1 -1
+1 -1
View File
@@ -78,7 +78,7 @@ int32_t lj_vm_foldarith_int(int32_t x, int32_t y, int op)
case IR_MOD - IR_ADD: return x%y; break;
case IR_POW - IR_ADD: return pow(x, y); break;
case IR_NEG - IR_ADD: return -x; break;
case IR_ABS - IR_ADD: return fabs(x); break;
case IR_ABS - IR_ADD: return abs(x); break;
#if LJ_HASJIT
case IR_LDEXP - IR_ADD: return ldexp(x, (int)y); break;
case IR_MIN - IR_ADD: return x < y ? x : y; break;