Commit 16074e674925b8ceb984d33b0df8c83f0a05c982

Sam Lantinga 2016-12-02T22:18:05

Fixed compile warning on Visual Studio

diff --git a/src/events/SDL_mouse.c b/src/events/SDL_mouse.c
index f3cc6fc..0ac993c 100644
--- a/src/events/SDL_mouse.c
+++ b/src/events/SDL_mouse.c
@@ -45,7 +45,7 @@ SDL_MouseNormalSpeedScaleChanged(void *userdata, const char *name, const char *o
 {
     SDL_Mouse *mouse = (SDL_Mouse *)userdata;
 
-    mouse->normal_speed_scale = SDL_atof(hint);
+    mouse->normal_speed_scale = (float)SDL_atof(hint);
 }
 
 static void
@@ -53,7 +53,7 @@ SDL_MouseRelativeSpeedScaleChanged(void *userdata, const char *name, const char 
 {
     SDL_Mouse *mouse = (SDL_Mouse *)userdata;
 
-    mouse->relative_speed_scale = SDL_atof(hint);
+    mouse->relative_speed_scale = (float)SDL_atof(hint);
 }
 
 /* Public functions */