File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -272,12 +272,12 @@ double Range::get_as_ratio() const {
272272 if (shared->exp_ratio && get_min () >= 0 ) {
273273 double exp_min = get_min () == 0 ? 0.0 : Math::log (get_min ()) / Math::log ((double )2 );
274274 double exp_max = Math::log (get_max ()) / Math::log ((double )2 );
275- float value = CLAMP (get_value (), shared->min , shared->max );
275+ double value = CLAMP (get_value (), shared->min , shared->max );
276276 double v = Math::log (value) / Math::log ((double )2 );
277277
278278 return CLAMP ((v - exp_min) / (exp_max - exp_min), 0 , 1 );
279279 } else {
280- float value = CLAMP (get_value (), shared->min , shared->max );
280+ double value = CLAMP (get_value (), shared->min , shared->max );
281281 return CLAMP ((value - get_min ()) / (get_max () - get_min ()), 0 , 1 );
282282 }
283283}
You can’t perform that action at this time.
0 commit comments