From: Andreas Schwab Date: Tue, 14 Apr 1998 12:53:36 +0000 (+0000) Subject: (Fchars_in_region): Fix mixing of Lisp_Object and int. X-Git-Tag: emacs-20.3~1556 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a8c21066b73b9b2f8695dde365b8aec6131a32fc;p=emacs.git (Fchars_in_region): Fix mixing of Lisp_Object and int. --- 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.