Fixed compiler warning on Visual Studio

This commit is contained in:
Sam Lantinga 2013-12-06 08:24:00 -08:00
parent fc78e98221
commit c78476dadc
1 changed files with 2 additions and 2 deletions

View File

@ -668,9 +668,9 @@ SDL_GameControllerAddMappingsFromRW( SDL_RWops * rw, int freerw )
if (rw == NULL) {
return SDL_SetError("Invalid RWops");
}
db_size = SDL_RWsize(rw);
db_size = (size_t)SDL_RWsize(rw);
buf = (char *) SDL_malloc(db_size + 1);
buf = (char *)SDL_malloc(db_size + 1);
if (buf == NULL) {
if (freerw) {
SDL_RWclose(rw);