Skip to content

Commit

Permalink
finite -> isfinite
Browse files Browse the repository at this point in the history
  • Loading branch information
highperformancecoder committed Dec 31, 2024
1 parent ef51b39 commit d5c3ef9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/variableValue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@ namespace minsky
{
if (size()==1 && !isnan(value()))
{
if (!finite(sliderMax) ||sliderMax<value())
if (!isfinite(sliderMax) ||sliderMax<value())
sliderMax=value()? abs(10*value()):1;
if (!finite(sliderMin) || sliderMin>=value())
if (!isfinite(sliderMin) || sliderMin>=value())
sliderMin=value()? -abs(10*value()):-1;
assert(sliderMin<sliderMax);
sliderStep=maxSliderSteps();
Expand Down

0 comments on commit d5c3ef9

Please sign in to comment.