changeset 17366:f7809ff2c65f

(ONE_BYTE_CHAR_WIDTH, Fconcat_chars): Don't use Lisp_Object as integer.
author Karl Heuer <kwzh@gnu.org>
date Thu, 10 Apr 1997 21:35:28 +0000
parents fc2ec9ced22f
children ac4db12935d7
files src/charset.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/charset.c	Thu Apr 10 21:26:07 1997 +0000
+++ b/src/charset.c	Thu Apr 10 21:35:28 1997 +0000
@@ -668,7 +668,7 @@
 #define ONE_BYTE_CHAR_WIDTH(c)					     	\
   (c < 0x20							     	\
    ? (c == '\t'							     	\
-      ? current_buffer->tab_width				     	\
+      ? XFASTINT (current_buffer->tab_width)			     	\
       : (c == '\n' ? 0 : (NILP (current_buffer->ctl_arrow) ? 4 : 2)))	\
    : (c < 0x7f							     	\
       ? 1							     	\
@@ -845,11 +845,11 @@
 
 DEFUN ("concat-chars", Fconcat_chars, Sconcat_chars, 1, MANY, 0,
   "Concatenate all the argument characters and make the result a string.")
-  (nargs, args)
-     int nargs;
+  (n, args)
+     int n;
      Lisp_Object *args;
 {
-  int i, n = XINT (nargs);
+  int i;
   unsigned char *buf
     = (unsigned char *) malloc (MAX_LENGTH_OF_MULTI_BYTE_FORM * n);
   unsigned char *p = buf;