Mercurial > emacs
comparison src/charset.c @ 21519:9b26f9300d41
(Fchars_in_region): Fix mixing of Lisp_Object and int.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Tue, 14 Apr 1998 12:53:36 +0000 |
parents | fa9ff387d260 |
children | 98c5740d198b |
comparison
equal
deleted
inserted
replaced
21518:1b0d88d6fb42 | 21519:9b26f9300d41 |
---|---|
1102 int from, to; | 1102 int from, to; |
1103 | 1103 |
1104 from = min (XFASTINT (beg), XFASTINT (end)); | 1104 from = min (XFASTINT (beg), XFASTINT (end)); |
1105 to = max (XFASTINT (beg), XFASTINT (end)); | 1105 to = max (XFASTINT (beg), XFASTINT (end)); |
1106 | 1106 |
1107 return to - from; | 1107 return make_number (to - from); |
1108 } | 1108 } |
1109 | 1109 |
1110 /* Return the number of characters in the NBYTES bytes at PTR. | 1110 /* Return the number of characters in the NBYTES bytes at PTR. |
1111 This works by looking at the contents and checking for multibyte sequences. | 1111 This works by looking at the contents and checking for multibyte sequences. |
1112 However, if the current buffer has enable-multibyte-characters = nil, | 1112 However, if the current buffer has enable-multibyte-characters = nil, |