From f30e2e438db36bfc3961fae4d7908fadd0d262f8 Mon Sep 17 00:00:00 2001 From: Brick <6098371+0x1F9F1@users.noreply.github.com> Date: Wed, 6 Oct 2021 22:52:33 +0100 Subject: [PATCH] Fix compiler warnings in testvulkan.c MSVC gives the following warnings when compiling testvulkan.c: ``` testvulkan.c(656,1): warning C4018: '<': signed/unsigned mismatch testvulkan.c(656,1): warning C4018: '>': signed/unsigned mismatch testvulkan.c(660,1): warning C4018: '<': signed/unsigned mismatch testvulkan.c(660,1): warning C4018: '>': signed/unsigned mismatch ``` --- test/testvulkan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testvulkan.c b/test/testvulkan.c index ee6bde8d5..be5b4fe80 100644 --- a/test/testvulkan.c +++ b/test/testvulkan.c @@ -653,11 +653,11 @@ static SDL_bool createSwapchain(void) // Clamp the size to the allowable image extent. // SDL_Vulkan_GetDrawableSize()'s result it not always in this range (bug #3287) - vulkanContext->swapchainSize.width = SDL_clamp(w, + vulkanContext->swapchainSize.width = SDL_clamp((uint32_t) w, vulkanContext->surfaceCapabilities.minImageExtent.width, vulkanContext->surfaceCapabilities.maxImageExtent.width); - vulkanContext->swapchainSize.height = SDL_clamp(h, + vulkanContext->swapchainSize.height = SDL_clamp((uint32_t) h, vulkanContext->surfaceCapabilities.minImageExtent.height, vulkanContext->surfaceCapabilities.maxImageExtent.height);