From: Hugo van der Sanden Date: Tue, 5 Sep 2000 14:13:37 +0000 (+0100) Subject: Re: [ID 20000905.001] Assertion failed: file "toke.c", line 202 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=07c798fba9d4fe8ccc19f0a24bb183c75256ac15;p=p5sagit%2Fp5-mst-13.2.git Re: [ID 20000905.001] Assertion failed: file "toke.c", line 202 Message-Id: <200009051313.OAA24507@crypt.compulink.co.uk> p4raw-id: //depot/perl@7028 --- diff --git a/toke.c b/toke.c index 329d55f..ddf052e 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; }