Warnings fixed: fabsf -> fabs
This commit is contained in:
parent
c2d4b18967
commit
dc68d2bfa7
1 changed files with 2 additions and 2 deletions
|
@ -439,11 +439,11 @@ int main(void) {
|
||||||
{
|
{
|
||||||
Mat3 m = {{1, 0, 0, 0, 1, 0, 0, 0, 1}};
|
Mat3 m = {{1, 0, 0, 0, 1, 0, 0, 0, 1}};
|
||||||
float d = mat3_det(&m);
|
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;
|
MAT3_AT(&m, 0, 0) = 2;
|
||||||
d = mat3_det(&m);
|
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) */
|
/* Vector tests for addition, subtraction and multiplication (scale) */
|
||||||
|
|
Loading…
Add table
Reference in a new issue