changeset 879:f809bc97829a

[xemacs-hg @ 2002-06-24 10:01:20 by michaels] 2002-06-24 Mike Sperber <mike@xemacs.org> * search.c (skip_chars): Fix a crash if NILP(lim).
author michaels
date Mon, 24 Jun 2002 10:01:22 +0000
parents 64f38afaab2d
children beddd25fe24a
files src/ChangeLog src/search.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Jun 23 22:03:33 2002 +0000
+++ b/src/ChangeLog	Mon Jun 24 10:01:22 2002 +0000
@@ -1,3 +1,7 @@
+2002-06-24  Mike Sperber  <mike@xemacs.org>
+
+	* search.c (skip_chars): Fix a crash if NILP(lim).
+
 2002-06-23  Stephen J. Turnbull  <stephen@xemacs.org>
 
 	* unicode.c: Improve top-level comments and many docstrings.
--- a/src/search.c	Sun Jun 23 22:03:33 2002 +0000
+++ b/src/search.c	Mon Jun 24 10:01:22 2002 +0000
@@ -953,7 +953,7 @@
 		{
 		  pos++;
 		  INC_BYTEBPOS (buf, pos_byte);
-		  if (pos >= XINT (lim))
+		  if (pos >= limit)
 		    break;
 		  UPDATE_SYNTAX_CACHE_FORWARD (scache, pos);
 		}