From 72b8054ecc4c53cb9a138266fd267f2334f32a37 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 28 Dec 2022 09:32:01 +0100 Subject: Fix compiler warnings on Windows with mingw-w64 CMAKE_CXX_STANDARD=20 (#615) --- test/animated.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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; -- cgit v1.2.3