mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Make older compilers happy by using std::isnan instead of isnan
Both forms apparently work on more recent compilers
This commit is contained in:
parent
8e09bae7c7
commit
3e9d0c1fda
@ -83,7 +83,7 @@ GncNumeric::GncNumeric(GncRational rr)
|
||||
GncNumeric::GncNumeric(double d) : m_num(0), m_den(1)
|
||||
{
|
||||
static uint64_t max_leg_value{INT64_C(1000000000000000000)};
|
||||
if (isnan(d) || fabs(d) > max_leg_value)
|
||||
if (std::isnan(d) || fabs(d) > max_leg_value)
|
||||
{
|
||||
std::ostringstream msg;
|
||||
msg << "Unable to construct a GncNumeric from " << d << ".\n";
|
||||
|
Loading…
Reference in New Issue
Block a user