From 3b083b9911d444899dd81efb9816890362e3c442 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 8 Jan 2022 14:07:42 -0800 Subject: [PATCH] Fixed compile warning --- src/render/SDL_render.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c index c23e01c40..dfbcbe3f5 100644 --- a/src/render/SDL_render.c +++ b/src/render/SDL_render.c @@ -2843,7 +2843,7 @@ static int plotLineLow(SDL_Renderer *renderer, float x0, float y0, float x1, flo D += 2*dy; } } - render_count = (tmp - points); + render_count = (int)(tmp - points); if (!draw_last) { --render_count; @@ -2901,7 +2901,7 @@ static int plotLineHigh(SDL_Renderer *renderer, float x0, float y0, float x1, fl D += 2*dx; } } - render_count = (tmp - points); + render_count = (int)(tmp - points); if (!draw_last) { --render_count;