Commit 17e7ef1b authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fchars_in_region): Coerce markers.

parent e73ec04b
......@@ -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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment