src/joystick/SDL_gamecontroller.c
changeset 8052 f0c6c1a45fb1
parent 8046 e7c89b29932a
child 8053 495f4a047be1
--- a/src/joystick/SDL_gamecontroller.c	Thu Dec 05 09:54:22 2013 -0800
+++ b/src/joystick/SDL_gamecontroller.c	Fri Dec 06 08:24:00 2013 -0800
@@ -668,9 +668,9 @@
     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);