changeset 38116:a85b9df3dffb

(Ffind_composition_internal): Accept ZV and a string's end position as POS.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 19 Jun 2001 11:30:16 +0000
parents c75a19b1930f
children 84b70175e316
files src/composite.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/composite.c	Tue Jun 19 11:28:29 2001 +0000
+++ b/src/composite.c	Tue Jun 19 11:30:16 2001 +0000
@@ -782,12 +782,12 @@
   if (!NILP (string))
     {
       CHECK_STRING (string, 2);
-      if (XINT (pos) < 0 || XINT (pos) >= XSTRING (string)->size)
+      if (XINT (pos) < 0 || XINT (pos) > XSTRING (string)->size)
 	args_out_of_range (string, pos);
     }
   else
     {
-      if (XINT (pos) < BEGV || XINT (pos) >= ZV)
+      if (XINT (pos) < BEGV || XINT (pos) > ZV)
 	args_out_of_range (Fcurrent_buffer (), pos);
     }