Skip to content

Commit

Permalink
Fixed one more warning in ColorPicker
Browse files Browse the repository at this point in the history
  • Loading branch information
texus committed Sep 18, 2020
1 parent ec43995 commit eed8481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Widgets/ColorPicker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ namespace tgui
* + - bigger curve
*/
const double a = std::exp(1.0) - 1.0;
return static_cast<float>((std::exp(std::log(a + 1.0) * x) - 1.0) / a);
return static_cast<float>((std::exp(std::log(a + 1.0) * static_cast<double>(x)) - 1.0) / a);
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit eed8481

Please sign in to comment.