From b4e2777820c3ee0f802c5956eaafb5feea4e0945 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Thu, 19 Sep 2024 13:31:24 -0400
Subject: [PATCH] examples/renderer/03-lines: Fix compiler warning on Visual
Studio.
---
examples/renderer/03-lines/renderer-lines.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/renderer/03-lines/renderer-lines.c b/examples/renderer/03-lines/renderer-lines.c
index a2c95396036bb..b2c8cf2cc7826 100644
--- a/examples/renderer/03-lines/renderer-lines.c
+++ b/examples/renderer/03-lines/renderer-lines.c
@@ -77,7 +77,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
const float x = 320.0f;
const float y = 95.0f - (size / 2.0f);
SDL_SetRenderDrawColor(renderer, SDL_rand(256), SDL_rand(256), SDL_rand(256), 255);
- SDL_RenderLine(renderer, x, y, x + SDL_sinf(i) * size, y + SDL_cosf(i) * size);
+ SDL_RenderLine(renderer, x, y, x + SDL_sinf((float) i) * size, y + SDL_cosf((float) i) * size);
}
SDL_RenderPresent(renderer); /* put it all on the screen! */