diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-16 15:11:40 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-16 18:04:35 +0200 |
commit | b9df690652818ed91097cb9f24854022f823d35e (patch) | |
tree | 5ad6c4142861e43ea350682b95e9c861c946350a /options/slider.hpp | |
parent | 33c4e66568b128312b1dcdf96b54f72cf902e498 (diff) |
options/slider: fix fpu type
Diffstat (limited to 'options/slider.hpp')
-rw-r--r-- | options/slider.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/options/slider.hpp b/options/slider.hpp index dff841c6..1ae63d10 100644 --- a/options/slider.hpp +++ b/options/slider.hpp @@ -18,7 +18,7 @@ namespace options { double cur_, min_, max_; public: - slider_value(float cur, float min, float max); + slider_value(double cur, double min, double max); template<typename t, typename u, typename v> slider_value(t cur, u min, v max) : cur_(double(cur)), @@ -31,9 +31,9 @@ namespace options slider_value& operator=(const slider_value& v); bool operator==(const slider_value& v) const; operator double() const { return cur_; } - double cur() const { return double(cur_); } - double min() const { return double(min_); } - double max() const { return double(max_); } + double cur() const { return cur_; } + double min() const { return min_; } + double max() const { return max_; } slider_value update_from_slider(int pos, int q_min, int q_max) const; int to_slider_pos(int q_min, int q_max) const; }; |