Commit Diff
--- src/cmd/yacc.c +++ src/cmd/yacc.c @@ -2124,7 +2124,7 @@ swt: string: Bputrune(faction, c); - while(c = Bgetrune(finput)) { + while((c = Bgetrune(finput)) >= 0) { if(c == '\\') { Bputrune(faction, c); c = Bgetrune(finput);
--- src/cmd/yacc.c +++ src/cmd/yacc.c @@ -2124,7 +2124,7 @@ swt: string: Bputrune(faction, c); - while(c = Bgetrune(finput)) { + while((c = Bgetrune(finput)) >= 0) { if(c == '\\') { Bputrune(faction, c); c = Bgetrune(finput);