[PATCH 02/10] glr2.cc: fix when the stack is not expandable

Akim Demaille <[email protected]>
Newsgroups gmane.comp.parsers.bison.patches
Message-ID <[email protected]>
* data/skeletons/glr2.cc (yyexpandGLRStackIfNeeded): Fix the
implementation when !YYSTACKEXPANDABLE.
---
 data/skeletons/glr2.cc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/data/skeletons/glr2.cc b/data/skeletons/glr2.cc
index 8c5fc396..885c57c4 100644
--- a/data/skeletons/glr2.cc
+++ b/data/skeletons/glr2.cc
@@ -1364,8 +1364,9 @@ class state_stack {
   }
  public:
 #else
-  bool yyexpandGLRStackIfNeeded() {
-    return yystateStack.spaceLeft() < YYHEADROOM;
+  bool yyexpandGLRStackIfNeeded ()
+  {
+    return spaceLeft () < YYHEADROOM;
   }
 #endif
 
-- 
2.29.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.