From dcc8805c21ebb6ef763d9ebfee047a547ccb016d Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 30 Oct 2023 13:09:56 -0400 Subject: [PATCH] testaudio: Fixed compiler warning on Visual Studio. --- test/testaudio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testaudio.c b/test/testaudio.c index a1bafa04e..e77901c94 100644 --- a/test/testaudio.c +++ b/test/testaudio.c @@ -359,8 +359,8 @@ static void DrawOneThing(SDL_Renderer *renderer, Thing *thing) if (thing->scale != 1.0f) { const float centerx = thing->rect.x + (thing->rect.w / 2); const float centery = thing->rect.y + (thing->rect.h / 2); - const int w = thing->texture ? thing->texture->w : 128; - const int h = thing->texture ? thing->texture->h : 128; + const int w = thing->texture ? (int) thing->texture->w : 128; + const int h = thing->texture ? (int) thing->texture->h : 128; dst.w = w * thing->scale; dst.h = h * thing->scale; dst.x = centerx - (dst.w / 2);