(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 4f132e9..3160ff9 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.