Avoid a bug in the C-optimizer of 4.1 BSD.
This commit is contained in:
parent
7fd4e395da
commit
87af36724b
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue