Additional cleanup exposed by building with a C++ compiler

This commit is contained in:
Sam Lantinga committed 2024-08-27 10:31:46 -07:00
1 parent f08ac438ed
commit 00c409cff8
26 files changed
+84 -120

No files matched your search

+1 -1
View File
@@ -221,7 +221,7 @@ static char *CaseFoldUtf8String(const char *fname)
if (remaining > 0) {
SDL_assert(allocation > remaining);
ptr = SDL_realloc(result, allocation - remaining); // shrink it down.
ptr = (char *)SDL_realloc(result, allocation - remaining); // shrink it down.
if (ptr) { // shouldn't fail, but if it does, `result` is still valid.
result = ptr;
}