From a8c21066b73b9b2f8695dde365b8aec6131a32fc Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 14 Apr 1998 12:53:36 +0000 Subject: [PATCH] (Fchars_in_region): Fix mixing of Lisp_Object and int. --- src/charset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/charset.c b/src/charset.c index 4f132e974e2..3160ff9ab2a 100644 --- a/src/charset.c +++ b/src/charset.c @@ -1104,7 +1104,7 @@ DEFUN ("chars-in-region", Fchars_in_region, Schars_in_region, 2, 2, 0, from = min (XFASTINT (beg), XFASTINT (end)); to = max (XFASTINT (beg), XFASTINT (end)); - return to - from; + return make_number (to - from); } /* Return the number of characters in the NBYTES bytes at PTR. -- 2.39.2