Skip to content

Commit

Permalink
Fixed compiler warning on Visual Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 6, 2013
1 parent fc78e98 commit c78476d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/joystick/SDL_gamecontroller.c
Expand Up @@ -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);
Expand Down

0 comments on commit c78476d

Please sign in to comment.