diff --git a/include/graphene-simd4x4f.h b/include/graphene-simd4x4f.h index 69d4e8f..2cf4e33 100644 --- a/include/graphene-simd4x4f.h +++ b/include/graphene-simd4x4f.h @@ -656,7 +656,7 @@ graphene_simd4x4f_init_look_at (graphene_simd4x4f_t *m, graphene_simd4f_t tweak_z; /* up and z_axis are parallel */ - if (fabs (graphene_simd4f_get_z (up) - 1.0) < FLT_EPSILON) + if (fabsf (graphene_simd4f_get_z (up) - 1.f) < FLT_EPSILON) tweak_z = graphene_simd4f_init (0.0001f, 0, 0, 0); else tweak_z = graphene_simd4f_init (0, 0, 0.0001f, 0);