From 43f7087ffb7d2226858db3a599fa2f15e8ffca36 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sun, 25 Aug 2019 21:30:44 +0100 Subject: [PATCH] Shut up a warning in the SDLTexture renderer backend --- src/Backends/Rendering/SDLTexture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Backends/Rendering/SDLTexture.cpp b/src/Backends/Rendering/SDLTexture.cpp index db909849..153eebe2 100644 --- a/src/Backends/Rendering/SDLTexture.cpp +++ b/src/Backends/Rendering/SDLTexture.cpp @@ -138,10 +138,10 @@ void Backend_UnlockSurface(Backend_Surface *surface) const unsigned char *src_pixel = surface->pixels; // Convert the SDL_Surface's colour-keyed pixels to RGBA32 - for (int y = 0; y < surface->height; ++y) + for (unsigned int y = 0; y < surface->height; ++y) { - for (int x = 0; x < surface->width; ++x) + for (unsigned int x = 0; x < surface->width; ++x) { *buffer_pointer++ = src_pixel[0]; *buffer_pointer++ = src_pixel[1];