changeset 12894:b2a75405de3c

(scan_sexps_forward): Fix previous change.
author Richard M. Stallman <rms@gnu.org>
date Sat, 19 Aug 1995 17:00:34 +0000
parents 3ae9326907aa
children 4dbac3df0ec7
files src/syntax.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/syntax.c	Sat Aug 19 16:59:43 1995 +0000
+++ b/src/syntax.c	Sat Aug 19 17:00:34 1995 +0000
@@ -1534,7 +1534,7 @@
 	    error ("Nesting too deep for parser");
 	  curlevel->prev = -1;
 	  curlevel->last = -1;
-	  if (targetdepth != depth) goto done;
+	  if (targetdepth == depth) goto done;
 	  break;
 
 	case Sclose:
@@ -1544,7 +1544,7 @@
 	  if (curlevel != levelstart)
 	    curlevel--;
 	  curlevel->prev = curlevel->last;
-	  if (targetdepth != depth) goto done;
+	  if (targetdepth == depth) goto done;
 	  break;
 
 	case Sstring: