lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master b4fcdefc 1/6: Fix defect introduced 20220525T


From: Greg Chicares
Subject: [lmi-commits] [lmi] master b4fcdefc 1/6: Fix defect introduced 20220525T0000Z: careless pasting
Date: Wed, 29 Jun 2022 11:11:35 -0400 (EDT)

branch: master
commit b4fcdefc873c315cddd64e98fd076cb0712215e2
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Fix defect introduced 20220525T0000Z: careless pasting
    
    Commit 97b78cecccc52 of 20220525T0000Z popped warning pragmata
    explicitly, explaining that it is sloppy not to pop after pushing;
    however, the added code was sloppily pasted from 'fdlibm.hpp', so
    the preprocessor conditionals for pushing and popping didn't match.
    Thus, this defect was introduced while fixing a less grave defect.
---
 fdlibm_expm1.c | 4 ++--
 fdlibm_log1p.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/fdlibm_expm1.c b/fdlibm_expm1.c
index 85327355..e037b6c9 100644
--- a/fdlibm_expm1.c
+++ b/fdlibm_expm1.c
@@ -258,6 +258,6 @@ double fdlibm_expm1(double x)
     }
     return y;
 }
-#if defined __cplusplus && defined LMI_GCC
+#if defined LMI_GCC
 #   pragma GCC diagnostic pop
-#endif // defined __cplusplus && defined LMI_GCC
+#endif // defined LMI_GCC
diff --git a/fdlibm_log1p.c b/fdlibm_log1p.c
index 4062c268..0f72cd41 100644
--- a/fdlibm_log1p.c
+++ b/fdlibm_log1p.c
@@ -210,6 +210,6 @@ double fdlibm_log1p(double x)
     if(k==0) return f-(hfsq-s*(hfsq+R)); else
              return k*ln2_hi-((hfsq-(s*(hfsq+R)+(k*ln2_lo+c)))-f);
 }
-#if defined __cplusplus && defined LMI_GCC
+#if defined LMI_GCC
 #   pragma GCC diagnostic pop
-#endif // defined __cplusplus && defined LMI_GCC
+#endif // defined LMI_GCC



reply via email to

[Prev in Thread] Current Thread [Next in Thread]