From 07c798fba9d4fe8ccc19f0a24bb183c75256ac15 Mon Sep 17 00:00:00 2001 From: Hugo van der Sanden Date: Tue, 5 Sep 2000 15:13:37 +0100 Subject: Re: [ID 20000905.001] Assertion failed: file "toke.c", line 202 Message-Id: <200009051313.OAA24507@crypt.compulink.co.uk> p4raw-id: //depot/perl@7028 --- toke.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'toke.c') diff --git a/toke.c b/toke.c index 329d55f994..ddf052e74c 100644 --- a/toke.c +++ b/toke.c @@ -209,10 +209,8 @@ S_no_op(pTHX_ char *what, char *s) if (!s) s = oldbp; - else { - assert(s >= oldbp); + else PL_bufptr = s; - } yywarn(Perl_form(aTHX_ "%s found where operator expected", what)); if (is_first) Perl_warn(aTHX_ "\t(Missing semicolon on previous line?)\n"); @@ -223,8 +221,10 @@ S_no_op(pTHX_ char *what, char *s) Perl_warn(aTHX_ "\t(Do you need to predeclare %.*s?)\n", t - PL_oldoldbufptr, PL_oldoldbufptr); } - else + else { + assert(s >= oldbp); Perl_warn(aTHX_ "\t(Missing operator before %.*s?)\n", s - oldbp, oldbp); + } PL_bufptr = oldbp; } -- cgit v1.2.1