aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1997-04-10 21:35:28 +0000
committerKarl Heuer1997-04-10 21:35:28 +0000
commit53316e5587d45deff762fe4ce46553a4620c0bdc (patch)
tree7fe99a4dac8becd228d86687ddfdce2901d80a26 /src
parent296b535c36f08100e7ba2dffc239e1f9e3383019 (diff)
downloademacs-53316e5587d45deff762fe4ce46553a4620c0bdc.tar.gz
emacs-53316e5587d45deff762fe4ce46553a4620c0bdc.zip
(ONE_BYTE_CHAR_WIDTH, Fconcat_chars): Don't use Lisp_Object as integer.
Diffstat (limited to 'src')
-rw-r--r--src/charset.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/charset.c b/src/charset.c
index 7cd6f551587..fbed6283daa 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -668,7 +668,7 @@ DEFUN ("char-bytes", Fchar_bytes, Schar_bytes, 1, 1, 0,
668#define ONE_BYTE_CHAR_WIDTH(c) \ 668#define ONE_BYTE_CHAR_WIDTH(c) \
669 (c < 0x20 \ 669 (c < 0x20 \
670 ? (c == '\t' \ 670 ? (c == '\t' \
671 ? current_buffer->tab_width \ 671 ? XFASTINT (current_buffer->tab_width) \
672 : (c == '\n' ? 0 : (NILP (current_buffer->ctl_arrow) ? 4 : 2))) \ 672 : (c == '\n' ? 0 : (NILP (current_buffer->ctl_arrow) ? 4 : 2))) \
673 : (c < 0x7f \ 673 : (c < 0x7f \
674 ? 1 \ 674 ? 1 \
@@ -845,11 +845,11 @@ If POS is out of range or not at character boundary, return NIL.")
845 845
846DEFUN ("concat-chars", Fconcat_chars, Sconcat_chars, 1, MANY, 0, 846DEFUN ("concat-chars", Fconcat_chars, Sconcat_chars, 1, MANY, 0,
847 "Concatenate all the argument characters and make the result a string.") 847 "Concatenate all the argument characters and make the result a string.")
848 (nargs, args) 848 (n, args)
849 int nargs; 849 int n;
850 Lisp_Object *args; 850 Lisp_Object *args;
851{ 851{
852 int i, n = XINT (nargs); 852 int i;
853 unsigned char *buf 853 unsigned char *buf
854 = (unsigned char *) malloc (MAX_LENGTH_OF_MULTI_BYTE_FORM * n); 854 = (unsigned char *) malloc (MAX_LENGTH_OF_MULTI_BYTE_FORM * n);
855 unsigned char *p = buf; 855 unsigned char *p = buf;