Skip to content
Permalink
Browse files

Fixed compiler warning on Visual Studio

  • Loading branch information
slouken committed Dec 6, 2013
1 parent fc78e98 commit c78476dadc90d3cb6069fdd602309133f344a495
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/joystick/SDL_gamecontroller.c
@@ -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);

0 comments on commit c78476d

Please sign in to comment.