git: 9front

Download patch

ref: d61f16a06706281ab5f0554ce309e14d0888bef1
parent: 4a4a5f8eede9baee7a92ab89157f6481c4de48f2
author: aiju <devnull@localhost>
date: Fri Apr 21 13:16:44 EDT 2017

fix yacc bug (found by dan cross)

--- a/sys/src/cmd/yacc.c
+++ b/sys/src/cmd/yacc.c
@@ -2101,11 +2101,12 @@
 				c = Bgetrune(finput);
 				if(c == '\n')
 					lineno++;
-			} else
+			} else {
 				if(c == match)
 					goto lcopy;
 				if(c == '\n')
 					error("newline in string or char. const.");
+			}
 			Bputrune(faction, c);
 		}
 		error("EOF in string or character constant");
--