]> git.saurik.com Git - bison.git/blobdiff - data/yacc.c
* data/glr.c (struct yyGLRStack): If pure, add yyval and yyloc members.
[bison.git] / data / yacc.c
index 4e21c5e2dda5e33ee8f200a44c3596a02487a3e3..db978f0dbefaded24838aa86bb9fdc3367f5f0a3 100644 (file)
@@ -587,7 +587,7 @@ while (YYID (0))
 #ifndef YYLLOC_DEFAULT
 # define YYLLOC_DEFAULT(Current, Rhs, N)                               \
     do                                                                 \
-      if (N)                                                           \
+      if (YYID (N))                                                    \
        {                                                               \
          (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;        \
          (Current).first_column = YYRHSLOC (Rhs, 1).first_column;      \