From 3d62ff0e078ebfa7b34fb89f721667c808a6aa1d Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 27 Jul 2015 16:13:26 +0200 Subject: [PATCH] Fix implicit truncation to float in cursor test Fixes #565. --- tests/cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cursor.c b/tests/cursor.c index a994388c..6f165213 100644 --- a/tests/cursor.c +++ b/tests/cursor.c @@ -64,7 +64,7 @@ static float star(int x, int y, float t) const float xalpha = (float) x == c ? c : k / (float) fabs(x - c); const float yalpha = (float) y == c ? c : k / (float) fabs(y - c); - return fmax(0.f, fmin(1.f, i * salpha * 0.2f + salpha * xalpha * yalpha)); + return (float) fmax(0.f, fmin(1.f, i * salpha * 0.2f + salpha * xalpha * yalpha)); } static GLFWcursor* create_cursor_frame(float t)