Fixed warning building with Visual Studio

main
Sam Lantinga 2022-05-15 09:33:28 -07:00
parent e0f3da497f
commit 996b3dc37a
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ SDL_PromptAssertion(const SDL_assert_data *data, void *userdata)
len = SDL_RenderAssertMessage(message, buf_len, data);
/* .. and if it didn't, try to allocate as much room as we actually need. */
if (len >= buf_len) {
if (len >= (int)buf_len) {
if (SDL_size_add_overflow(len, 1, &buf_len) == 0) {
message = (char *)SDL_malloc(buf_len);
if (message) {