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.9-65-g6f82b8


From: Mark H Weaver
Subject: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.9-65-g6f82b8f
Date: Sat, 10 Aug 2013 17:06:23 +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=6f82b8f62321269d5bb71679951d5e0595f81d2d

The branch, stable-2.0 has been updated
       via  6f82b8f62321269d5bb71679951d5e0595f81d2d (commit)
      from  b7c1b60c83098abf83c39b724e4e96eae8478c53 (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 6f82b8f62321269d5bb71679951d5e0595f81d2d
Author: Mark H Weaver <address@hidden>
Date:   Sat Aug 10 11:47:54 2013 -0400

    Fix inappropriate uses of scm_syserror in numbers.c.
    
    * libguile/numbers.c (mem2ureal, left_shift_exact_integer,
      floor_right_shift_exact_integer, round_right_shift_exact_integer):
      Use 'assert' instead of 'scm_syserror' to indicate a case that should
      never happen.

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

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

diff --git a/libguile/numbers.c b/libguile/numbers.c
index b9e453a..6f3a6ec 100644
--- a/libguile/numbers.c
+++ b/libguile/numbers.c
@@ -48,6 +48,7 @@
 #endif
 
 #include <verify.h>
+#include <assert.h>
 
 #include <math.h>
 #include <string.h>
@@ -5005,7 +5006,7 @@ left_shift_exact_integer (SCM n, long count)
       return result;
     }
   else
-    scm_syserror ("left_shift_exact_integer");
+    assert (0);
 }
 
 /* Efficiently compute floor (N / 2^COUNT),
@@ -5031,7 +5032,7 @@ floor_right_shift_exact_integer (SCM n, long count)
       return scm_i_normbig (result);
     }
   else
-    scm_syserror ("floor_right_shift_exact_integer");
+    assert (0);
 }
 
 /* Efficiently compute round (N / 2^COUNT),
@@ -5069,7 +5070,7 @@ round_right_shift_exact_integer (SCM n, long count)
       return scm_i_normbig (q);
     }
   else
-    scm_syserror ("round_right_shift_exact_integer");
+    assert (0);
 }
 
 SCM_DEFINE (scm_ash, "ash", 2, 0, 0,
@@ -6200,7 +6201,7 @@ mem2ureal (SCM mem, unsigned int *p_idx,
     }
 
   /* We should never get here */
-  scm_syserror ("mem2ureal");
+  assert (0);
 }
 
 


hooks/post-receive
-- 
GNU Guile



reply via email to

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