Warnings fixed: fabsf -> fabs

This commit is contained in:
Imbus 2025-06-01 14:31:13 +02:00
parent c2d4b18967
commit dc68d2bfa7

View file

@ -439,11 +439,11 @@ int main(void) {
{
Mat3 m = {{1, 0, 0, 0, 1, 0, 0, 0, 1}};
float d = mat3_det(&m);
assert(fabsf(d - 1.0) <= 0.01);
assert(fabs(d - 1.0) <= 0.01);
MAT3_AT(&m, 0, 0) = 2;
d = mat3_det(&m);
assert(fabsf(d - 2.0) <= 0.01);
assert(fabs(d - 2.0) <= 0.01);
}
{
/* Vector tests for addition, subtraction and multiplication (scale) */