From 48989e2a8796d77957eaa6fa70e445e844b0c5fe Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 17 Jun 2020 08:47:27 -0700 Subject: [PATCH] Reverted comment change in previous commit --- src/video/SDL_surface.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/video/SDL_surface.c b/src/video/SDL_surface.c index bff826f7c..3ec9093cf 100644 --- a/src/video/SDL_surface.c +++ b/src/video/SDL_surface.c @@ -28,8 +28,9 @@ #include "SDL_yuv_c.h" -/* Check to make sure we can safely check multiplication of surface w and pitch and it won't overflow Sint64 */ -SDL_COMPILE_TIME_ASSERT(surface_size_assumptions, sizeof(int) == sizeof(Sint32)); +/* Check to make sure we can safely check multiplication of surface w and pitch and it won't overflow size_t */ +SDL_COMPILE_TIME_ASSERT(surface_size_assumptions, + sizeof(int) == sizeof(Sint32) && sizeof(size_t) >= sizeof(Sint32)); /* Public routines */