Skip to content

Commit

Permalink
finite() doesn't exist on Windows - need isfinite() instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
highperformancecoder committed Mar 15, 2024
1 parent 7b1a04d commit 130f9de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,12 @@ namespace ecolab
assert(x[i].size()==y[i].size());
for (size_t j=0; j<x[i].size(); ++j)
{
if (finite(x[i][j]))
if (isfinite(x[i][j]))
{
if (x[i][j]<minx) minx=x[i][j];
if (x[i][j]>maxx) maxx=x[i][j];
}
if (finite(y[i][j]))
if (isfinite(y[i][j]))
{
if (i<penSide.size() && penSide[i]==right)
{
Expand Down

0 comments on commit 130f9de

Please sign in to comment.