src/events/SDL_mouse.c
changeset 10674 120c2e96b094
parent 10673 4f02752f8d85
child 10676 5c4eaca2517a
     1.1 --- a/src/events/SDL_mouse.c	Fri Dec 02 21:01:13 2016 -0800
     1.2 +++ b/src/events/SDL_mouse.c	Fri Dec 02 22:18:05 2016 -0800
     1.3 @@ -45,7 +45,7 @@
     1.4  {
     1.5      SDL_Mouse *mouse = (SDL_Mouse *)userdata;
     1.6  
     1.7 -    mouse->normal_speed_scale = SDL_atof(hint);
     1.8 +    mouse->normal_speed_scale = (float)SDL_atof(hint);
     1.9  }
    1.10  
    1.11  static void
    1.12 @@ -53,7 +53,7 @@
    1.13  {
    1.14      SDL_Mouse *mouse = (SDL_Mouse *)userdata;
    1.15  
    1.16 -    mouse->relative_speed_scale = SDL_atof(hint);
    1.17 +    mouse->relative_speed_scale = (float)SDL_atof(hint);
    1.18  }
    1.19  
    1.20  /* Public functions */