changeset 20878:34e0c8eb49eb

(Fposition_bytes): Allow marker as arg POSITION. Use XINT for type consistency.
author Kenichi Handa <handa@m17n.org>
date Tue, 10 Feb 1998 03:55:04 +0000
parents 4b22b9a5bd8e
children 64d2baa47498
files src/editfns.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/editfns.c	Mon Feb 09 19:40:38 1998 +0000
+++ b/src/editfns.c	Tue Feb 10 03:55:04 1998 +0000
@@ -459,8 +459,8 @@
   "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,