diff options
| author | Tom Tromey | 2018-08-09 18:02:00 -0600 |
|---|---|---|
| committer | Tom Tromey | 2018-08-09 18:02:00 -0600 |
| commit | 79f59d41a3d2ef3b4a9a87265bf517206a5837ad (patch) | |
| tree | 56025d476dd490d0894ce1af52a56d22d93ae77f /src | |
| parent | accb7b7ecc19f85c2750ded1046a464bc73c6a52 (diff) | |
| download | emacs-79f59d41a3d2ef3b4a9a87265bf517206a5837ad.tar.gz emacs-79f59d41a3d2ef3b4a9a87265bf517206a5837ad.zip | |
Fix up for bignums after merge from trunk
* src/character.c (char_width): Use XFIXNUM.
* src/editfns.c (styled_format): Use XFIXNUM, XUFIXNUM.
* src/fns.c (Fproper_list_p): Use make_fixnum.
Diffstat (limited to 'src')
| -rw-r--r-- | src/character.c | 2 | ||||
| -rw-r--r-- | src/editfns.c | 4 | ||||
| -rw-r--r-- | src/fns.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/character.c b/src/character.c index 851e61e778f..0b14e476c13 100644 --- a/src/character.c +++ b/src/character.c | |||
| @@ -294,7 +294,7 @@ char_width (int c, struct Lisp_Char_Table *dp) | |||
| 294 | if (GLYPH_CODE_P (ch)) | 294 | if (GLYPH_CODE_P (ch)) |
| 295 | c = GLYPH_CODE_CHAR (ch); | 295 | c = GLYPH_CODE_CHAR (ch); |
| 296 | else if (CHARACTERP (ch)) | 296 | else if (CHARACTERP (ch)) |
| 297 | c = XFASTINT (ch); | 297 | c = XFIXNUM (ch); |
| 298 | if (c >= 0) | 298 | if (c >= 0) |
| 299 | { | 299 | { |
| 300 | int w = CHARACTER_WIDTH (c); | 300 | int w = CHARACTER_WIDTH (c); |
diff --git a/src/editfns.c b/src/editfns.c index b1b9eb632f3..a109906e1df 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -4749,12 +4749,12 @@ styled_format (ptrdiff_t nargs, Lisp_Object *args, bool message) | |||
| 4749 | { | 4749 | { |
| 4750 | if (binary_as_unsigned) | 4750 | if (binary_as_unsigned) |
| 4751 | { | 4751 | { |
| 4752 | x = XUINT (arg); | 4752 | x = XUFIXNUM (arg); |
| 4753 | negative = false; | 4753 | negative = false; |
| 4754 | } | 4754 | } |
| 4755 | else | 4755 | else |
| 4756 | { | 4756 | { |
| 4757 | EMACS_INT i = XINT (arg); | 4757 | EMACS_INT i = XFIXNUM (arg); |
| 4758 | negative = i < 0; | 4758 | negative = i < 0; |
| 4759 | x = negative ? -i : i; | 4759 | x = negative ? -i : i; |
| 4760 | } | 4760 | } |
| @@ -163,7 +163,7 @@ A proper list is neither circular nor dotted (i.e., its last cdr is nil). */ | |||
| 163 | return Qnil; | 163 | return Qnil; |
| 164 | if (MOST_POSITIVE_FIXNUM < len) | 164 | if (MOST_POSITIVE_FIXNUM < len) |
| 165 | xsignal0 (Qoverflow_error); | 165 | xsignal0 (Qoverflow_error); |
| 166 | return make_number (len); | 166 | return make_fixnum (len); |
| 167 | } | 167 | } |
| 168 | 168 | ||
| 169 | DEFUN ("string-bytes", Fstring_bytes, Sstring_bytes, 1, 1, 0, | 169 | DEFUN ("string-bytes", Fstring_bytes, Sstring_bytes, 1, 1, 0, |