diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/editfns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/editfns.c b/src/editfns.c index 7699da52d9e..b007cbef83d 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -579,7 +579,7 @@ If `enable-multibyte-characters' is nil or POS is not at character boundary,\n\ else { CHECK_NUMBER_COERCE_MARKER (pos, 0); - if (pos < BEGV || pos >= ZV) + if (XINT (pos) < BEGV || XINT (pos) >= ZV) return Qnil; pos_byte = CHAR_TO_BYTE (XINT (pos)); @@ -614,7 +614,7 @@ is returned as a character.") { CHECK_NUMBER_COERCE_MARKER (pos, 0); - if (pos <= BEGV || pos > ZV) + if (XINT (pos) <= BEGV || XINT (pos) > ZV) return Qnil; pos_byte = CHAR_TO_BYTE (XINT (pos)); |