]> git.eshelyaron.com Git - emacs.git/commitdiff
(ONE_BYTE_CHAR_WIDTH, Fconcat_chars): Don't use Lisp_Object as integer.
authorKarl Heuer <kwzh@gnu.org>
Thu, 10 Apr 1997 21:35:28 +0000 (21:35 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 10 Apr 1997 21:35:28 +0000 (21:35 +0000)
src/charset.c

index 7cd6f551587b1143ff934202a1908466dec3ae28..fbed6283daaf7da469529ae6bbd0514c4fddeeb0 100644 (file)
@@ -668,7 +668,7 @@ DEFUN ("char-bytes", Fchar_bytes, Schar_bytes, 1, 1, 0,
 #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 @@ If POS is out of range or not at character boundary, return NIL.")
 
 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;