aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-07-12 03:15:53 +0000
committerRichard M. Stallman1998-07-12 03:15:53 +0000
commit17e7ef1b77113ac763bcbf2c6a9af5ef7c74e978 (patch)
treef0c7eb8b568c114b2be7fd8651a4bd9a27779e2c /src
parente73ec04be615e89924b6173325c6e888dcbb2cdd (diff)
downloademacs-17e7ef1b77113ac763bcbf2c6a9af5ef7c74e978.tar.gz
emacs-17e7ef1b77113ac763bcbf2c6a9af5ef7c74e978.zip
(Fchars_in_region): Coerce markers.
Diffstat (limited to 'src')
-rw-r--r--src/charset.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/charset.c b/src/charset.c
index 10627b0970c..3fa9761b988 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -1128,6 +1128,9 @@ DEFUN ("chars-in-region", Fchars_in_region, Schars_in_region, 2, 2, 0,
1128{ 1128{
1129 int from, to; 1129 int from, to;
1130 1130
1131 CHECK_NUMBER_COERCE_MARKER (beg, 0);
1132 CHECK_NUMBER_COERCE_MARKER (end, 1);
1133
1131 from = min (XFASTINT (beg), XFASTINT (end)); 1134 from = min (XFASTINT (beg), XFASTINT (end));
1132 to = max (XFASTINT (beg), XFASTINT (end)); 1135 to = max (XFASTINT (beg), XFASTINT (end));
1133 1136