]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fposition_bytes): Allow marker as arg POSITION. Use
authorKenichi Handa <handa@m17n.org>
Tue, 10 Feb 1998 03:55:04 +0000 (03:55 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 10 Feb 1998 03:55:04 +0000 (03:55 +0000)
XINT for type consistency.

src/editfns.c

index 15398e57a6055d4eaa2ababfae6d5a77a514b6fa..1630888f446554c1a8de216a17c62c1b636eb4be 100644 (file)
@@ -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)));
 }
 \f
 DEFUN ("following-char", Ffollowing_char, Sfollowing_char, 0, 0, 0,