From c78476dadc90d3cb6069fdd602309133f344a495 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 6 Dec 2013 08:24:00 -0800 Subject: [PATCH] Fixed compiler warning on Visual Studio --- src/joystick/SDL_gamecontroller.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/joystick/SDL_gamecontroller.c b/src/joystick/SDL_gamecontroller.c index 59c56fc46..d0329cd98 100644 --- a/src/joystick/SDL_gamecontroller.c +++ b/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);