Merge pull request #18916 from marcelofg55/clang_compile_fix

Fix compile error with clang
This commit is contained in:
Rémi Verschelde 2018-05-16 02:44:09 +02:00 committed by GitHub
commit 0ab1b05e86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ void EditorSpinSlider::_gui_input(const Ref<InputEvent> &p_event) {
double v = get_value();
double diff_x = mm->get_relative().x;
diff_x = Math::pow(ABS(diff_x), 1.8f) * SGN(diff_x);
diff_x = Math::pow(ABS(diff_x), 1.8) * SGN(diff_x);
diff_x *= 0.1;
v += diff_x * get_step();