]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix up for bignums after merge from trunk
authorTom Tromey <tom@tromey.com>
Fri, 10 Aug 2018 00:02:00 +0000 (18:02 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 10 Aug 2018 00:02:00 +0000 (18:02 -0600)
* src/character.c (char_width): Use XFIXNUM.
* src/editfns.c (styled_format): Use XFIXNUM, XUFIXNUM.
* src/fns.c (Fproper_list_p): Use make_fixnum.

src/character.c
src/editfns.c
src/fns.c

index 851e61e778ff2353a8990fe2c0c7a8e60c2af151..0b14e476c1357c686b1143c734a2726463080c48 100644 (file)
@@ -294,7 +294,7 @@ char_width (int c, struct Lisp_Char_Table *dp)
            if (GLYPH_CODE_P (ch))
              c = GLYPH_CODE_CHAR (ch);
            else if (CHARACTERP (ch))
-             c = XFASTINT (ch);
+             c = XFIXNUM (ch);
            if (c >= 0)
              {
                int w = CHARACTER_WIDTH (c);
index b1b9eb632f319eb5649685f6d8a518abd99d3b54..a109906e1df71ddc09d82b193c6bbc57c441eb29 100644 (file)
@@ -4749,12 +4749,12 @@ styled_format (ptrdiff_t nargs, Lisp_Object *args, bool message)
                    {
                      if (binary_as_unsigned)
                        {
-                         x = XUINT (arg);
+                         x = XUFIXNUM (arg);
                          negative = false;
                        }
                      else
                        {
-                         EMACS_INT i = XINT (arg);
+                         EMACS_INT i = XFIXNUM (arg);
                          negative = i < 0;
                          x = negative ? -i : i;
                        }
index 38b2d281f0717f9a62b3f96e27f875bcd78be97f..825880643ac095a3f650c901dae1de181f84139c 100644 (file)
--- a/src/fns.c
+++ b/src/fns.c
@@ -163,7 +163,7 @@ A proper list is neither circular nor dotted (i.e., its last cdr is nil).  */
     return Qnil;
   if (MOST_POSITIVE_FIXNUM < len)
     xsignal0 (Qoverflow_error);
-  return make_number (len);
+  return make_fixnum (len);
 }
 
 DEFUN ("string-bytes", Fstring_bytes, Sstring_bytes, 1, 1, 0,