From 713a183805beda9d9a1fe4ae9a8fa66a1b65c1bb Mon Sep 17 00:00:00 2001 From: anonymissimus Date: Mon, 23 Dec 2013 06:37:13 +0100 Subject: [PATCH] avoid a compile error (ambiguous call of overloaded function) --- src/controller_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller_base.cpp b/src/controller_base.cpp index 8779829941e..c907cff5f09 100644 --- a/src/controller_base.cpp +++ b/src/controller_base.cpp @@ -181,7 +181,7 @@ bool controller_base::handle_scroll(CKey& key, int mousex, int mousey, int mouse get_mouse_handler_base().scroll_started()) { // Scroll speed is proportional from the distance from the first // middle click and scrolling speed preference. - const double speed = 0.04 * sqrt(scroll_speed); + const double speed = 0.04 * sqrt(static_cast(scroll_speed)); const double snap_dist = 16; // Snap to horizontal/vertical scrolling const double x_diff = (mousex - original_loc.x); const double y_diff = (mousey - original_loc.y);