]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fchars_in_region): Fix mixing of Lisp_Object and int.
authorAndreas Schwab <schwab@suse.de>
Tue, 14 Apr 1998 12:53:36 +0000 (12:53 +0000)
committerAndreas Schwab <schwab@suse.de>
Tue, 14 Apr 1998 12:53:36 +0000 (12:53 +0000)
src/charset.c

index 4f132e974e2bd2c86c54c436f3d8037297d90ccf..3160ff9ab2af55a8b78a6ae6eafdb2d8c9270590 100644 (file)
@@ -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.