From 308444156d9bcce4183966183d11f1adc3a9e3d5 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 19 Aug 1995 17:00:34 +0000 Subject: [PATCH] (scan_sexps_forward): Fix previous change. --- src/syntax.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/syntax.c b/src/syntax.c index ed482be484d..34f76d76a4a 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -1534,7 +1534,7 @@ scan_sexps_forward (stateptr, from, end, targetdepth, 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 @@ scan_sexps_forward (stateptr, from, end, targetdepth, if (curlevel != levelstart) curlevel--; curlevel->prev = curlevel->last; - if (targetdepth != depth) goto done; + if (targetdepth == depth) goto done; break; case Sstring: -- 2.39.2