summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-12-28 09:32:01 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-12-28 09:32:01 +0100
commit72b8054ecc4c53cb9a138266fd267f2334f32a37 (patch)
treedea8f5ed1f27247378329ebd388f26f1760673dc /test
parent7601bd832cc253c75181125d167d82a137e443ab (diff)
Fix compiler warnings on Windows with mingw-w64 CMAKE_CXX_STANDARD=20 (#615)
Diffstat (limited to 'test')
-rw-r--r--test/animated.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/animated.cxx b/test/animated.cxx
index 71479977a..cd5172885 100644
--- a/test/animated.cxx
+++ b/test/animated.cxx
@@ -87,7 +87,7 @@ static void make_images() {
// A moving blob
const float pos = (i / (float) FRAMES) * 2 - 0.5f;
- const int xoffset = int(pos * DIM);
+ const int xoffset = int(pos * (int)DIM);
const int yoffset = 2 * DIM / 3;
const int w = DIM / 4;