From 17e7ef1b77113ac763bcbf2c6a9af5ef7c74e978 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 12 Jul 1998 03:15:53 +0000 Subject: [PATCH] (Fchars_in_region): Coerce markers. --- src/charset.c | 3 +++ 1 file changed, 3 insertions(+) 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)); -- 2.39.2