# HG changeset patch # User Gerd Moellmann # Date 992950216 0 # Node ID a85b9df3dffb2075399f53153924127e92644504 # Parent c75a19b1930fd796482853665dd186512bb9cfa9 (Ffind_composition_internal): Accept ZV and a string's end position as POS. diff -r c75a19b1930f -r a85b9df3dffb src/composite.c --- 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); }