From 0cfb376070a4bef7b4168a9795e025437e1be79f Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sun, 21 Oct 2012 11:25:08 -0400 Subject: fix clang warnings reported by Tuncer Ayaz R=rsc http://codereview.appspot.com/6744054 --- lib/yaccpars | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/yaccpars b/lib/yaccpars index 2b69c8a8..532f50b3 100644 --- a/lib/yaccpars +++ b/lib/yaccpars @@ -125,7 +125,8 @@ yyparse(void) yychar = -1; yynerrs = 0; yyerrflag = 0; - yyp = &yys[-1]; + yyp = &yys[0]; + yyp--; goto yystack; ret0: -- cgit v1.2.3