mirror of https://github.com/encounter/SDL.git
Fixed warning building with Visual Studio
This commit is contained in:
parent
e0f3da497f
commit
996b3dc37a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue