guile-commits
[Top][All Lists]
Advanced

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

[Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.2-61-g5f237d


From: Andy Wingo
Subject: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.2-61-g5f237d6
Date: Sat, 03 Sep 2011 16:37:59 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Guile".

http://git.savannah.gnu.org/cgit/guile.git/commit/?id=5f237d6e0e5d16b131c739c8daed3de9b162ec96

The branch, stable-2.0 has been updated
       via  5f237d6e0e5d16b131c739c8daed3de9b162ec96 (commit)
      from  df08fc359c87a2c802ab82c4c70db7bda9baaa52 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5f237d6e0e5d16b131c739c8daed3de9b162ec96
Author: Andy Wingo <address@hidden>
Date:   Sat Sep 3 18:37:51 2011 +0200

    deprecate +nan.1
    
    * libguile/numbers.c (mem2ureal): Deprecate nan values that are not
      "+nan.0".

-----------------------------------------------------------------------

Summary of changes:
 libguile/numbers.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/libguile/numbers.c b/libguile/numbers.c
index 14f4af1..a9c0125 100644
--- a/libguile/numbers.c
+++ b/libguile/numbers.c
@@ -5716,7 +5716,16 @@ mem2ureal (SCM mem, unsigned int *p_idx,
       /* Cobble up the fractional part.  We might want to set the
         NaN's mantissa from it. */
       idx += 4;
-      mem2uinteger (mem, &idx, 10, &implicit_x);
+      if (mem2uinteger (mem, &idx, 10, &implicit_x) != 0)
+        {
+#if SCM_ENABLE_DEPRECATED == 1
+          scm_c_issue_deprecation_warning
+            ("Non-zero suffixes to `+nan.' are deprecated.  Use `+nan.0'.");
+#else
+          return SCM_BOOL_F;
+#endif
+        }
+          
       *p_idx = idx;
       return scm_nan ();
     }


hooks/post-receive
-- 
GNU Guile



reply via email to

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