aboutsummaryrefslogtreecommitdiffstats
path: root/examples/rects.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-06-07 12:47:20 +0200
committerDavid Robillard <d@drobilla.net>2020-06-13 17:18:23 +0200
commit580e7b6e06d1c9806b8b920f27f894b5d1d8cc49 (patch)
tree21341eb10e76ced727c8565f6d01e0dce0f6ccc6 /examples/rects.h
parentabcff5b7f125a9e0d203025207fae07e58c40d8f (diff)
downloadpugl-580e7b6e06d1c9806b8b920f27f894b5d1d8cc49.tar.gz
pugl-580e7b6e06d1c9806b8b920f27f894b5d1d8cc49.tar.bz2
pugl-580e7b6e06d1c9806b8b920f27f894b5d1d8cc49.zip
Cleanup: Fix implicit conversion warnings with clang
Diffstat (limited to 'examples/rects.h')
-rw-r--r--examples/rects.h2
1 files changed, 1 insertions, 1 deletions
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]) *