From 8f316815c34d7c8e22bb76099180db722708706d Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 3 Sep 2024 06:33:02 +0300
Subject: [PATCH] update after SDL_size_add_overflow rename and return type
change
---
src/sdl2_compat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index 2552fc8..f7cae27 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -8756,7 +8756,7 @@ SDL_SIMDRealloc(void *mem, const size_t len)
/* alignment + padding + sizeof (void *) is bounded (a few hundred
* bytes max), so no need to check for overflow within that argument */
- if (SDL_size_add_overflow(len, alignment + padding + sizeof(void *), &to_allocate)) {
+ if (!SDL_size_add_check_overflow(len, alignment + padding + sizeof(void *), &to_allocate)) {
return NULL;
}