From: Richard M. Stallman Date: Sun, 12 Jul 1998 03:15:53 +0000 (+0000) Subject: (Fchars_in_region): Coerce markers. X-Git-Tag: emacs-20.3~340 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=17e7ef1b77113ac763bcbf2c6a9af5ef7c74e978;p=emacs.git (Fchars_in_region): Coerce markers. --- 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, { int from, to; + CHECK_NUMBER_COERCE_MARKER (beg, 0); + CHECK_NUMBER_COERCE_MARKER (end, 1); + from = min (XFASTINT (beg), XFASTINT (end)); to = max (XFASTINT (beg), XFASTINT (end));