From cdbe4bc4bc0b76b3ba7aadba264df4e6cd7e2eed Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Fri, 27 Jun 2025 20:44:39 +0200 Subject: [PATCH] Avoid implicit conversion to double Fixes: #249 --- include/graphene-simd4x4f.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);