* lread.c (string_to_number): Simplify the 2011-04-26 change by invoking xsignal1.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 Jun 2011 01:35:03 +0000 (18:35 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 Jun 2011 01:35:03 +0000 (18:35 -0700)
src/ChangeLog
src/lread.c

index 2016669..c5cb082 100644 (file)
@@ -4,6 +4,7 @@
        All uses changed.  This doesn't fix a bug, but it simplifies the
        code away from its former Hollerith-constant appearance, and it's
        one less 'int' to worry about when looking at integer-overflow issues.
+       (string_to_number): Simplify the 2011-04-26 change by invoking xsignal1.
 
        * lisp.h (DEFUN): Remove bogus use of sizeof (struct Lisp_Subr).
        This didn't break anything, but it didn't help either.
index f8db6c1..5f8d6b8 100644 (file)
@@ -3333,7 +3333,7 @@ string_to_number (char const *string, int base, int ignore_trailing)
          /* Unfortunately there's no simple and accurate way to convert
             non-base-10 numbers that are out of C-language range.  */
          if (base != 10)
-           xsignal (Qoverflow_error, list1 (build_string (string)));
+           xsignal1 (Qoverflow_error, build_string (string));
        }
       else if (n <= (negative ? -MOST_NEGATIVE_FIXNUM : MOST_POSITIVE_FIXNUM))
        {