Commit fa8a5a15 authored by Kenichi Handa's avatar Kenichi Handa

(Fposition_bytes): Allow marker as arg POSITION. Use

XINT for type consistency.
parent b5812513
......@@ -459,8 +459,8 @@ DEFUN ("position-bytes", Fposition_bytes, Sposition_bytes, 1, 1, 0,
"Return the byte position for character position POSITION.")
(position)
{
CHECK_NUMBER (position, 1);
return make_number (CHAR_TO_BYTE (position));
CHECK_NUMBER_COERCE_MARKER (position, 1);
return make_number (CHAR_TO_BYTE (XINT (position)));
}
DEFUN ("following-char", Ffollowing_char, Sfollowing_char, 0, 0, 0,
......
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