From: ceriel Date: Fri, 7 Nov 1986 17:54:30 +0000 (+0000) Subject: Avoid a bug in the C-optimizer of 4.1 BSD. X-Git-Tag: release-5-5~5162 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=87af36724b9f4cf38274ff4b0e7deb7846ad31ae;p=ack.git Avoid a bug in the C-optimizer of 4.1 BSD. --- diff --git a/util/LLgen/src/tokens.g b/util/LLgen/src/tokens.g index 1248a5d3b..54c883833 100644 --- a/util/LLgen/src/tokens.g +++ b/util/LLgen/src/tokens.g @@ -117,13 +117,13 @@ scanner() { int reserved = 0; /* reserved word? */ char *max = <ext[LTEXTSZ - 1]; - if (ch = savedtok.t_tokno) { + if (savedtok.t_tokno) { /* A token has been inserted. * Now deliver the last lextoken again */ lextoken = savedtok; savedtok.t_tokno = 0; - return ch; + return lextoken.t_tokno; } for (;;) { ch = input();