From 580e7b6e06d1c9806b8b920f27f894b5d1d8cc49 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 7 Jun 2020 12:47:20 +0200 Subject: Cleanup: Fix implicit conversion warnings with clang --- examples/rects.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/rects.h') diff --git a/examples/rects.h b/examples/rects.h index 0a7e5fa..f760226 100644 --- a/examples/rects.h +++ b/examples/rects.h @@ -70,7 +70,7 @@ moveRect(Rect* const rect, const float frameHeight, const double time) { - const float normal = index / (float)numRects; + const float normal = (float)index / (float)numRects; const float offset[2] = {normal * 128.0f, normal * 128.0f}; rect->pos[0] = (frameWidth - rect->size[0] + offset[0]) * -- cgit v1.2.1