gnucash master: Make older compilers happy by using std::isnan instead of isnan

Geert Janssens gjanssens at code.gnucash.org
Wed Mar 1 06:35:00 EST 2017


Updated	 via  https://github.com/Gnucash/gnucash/commit/3e9d0c1f (commit)
	from  https://github.com/Gnucash/gnucash/commit/8e09bae7 (commit)



commit 3e9d0c1fda7396e2e226a3df8cfcf8d50119c40b
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Wed Mar 1 12:34:53 2017 +0100

    Make older compilers happy by using std::isnan instead of isnan
    
    Both forms apparently work on more recent compilers

diff --git a/src/libqof/qof/gnc-numeric.cpp b/src/libqof/qof/gnc-numeric.cpp
index 907d8bc..9043557 100644
--- a/src/libqof/qof/gnc-numeric.cpp
+++ b/src/libqof/qof/gnc-numeric.cpp
@@ -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";



Summary of changes:
 src/libqof/qof/gnc-numeric.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list