bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Akim Demaille
Subject: [PATCH 02/10] glr2.cc: fix when the stack is not expandable
Date: Sun, 6 Dec 2020 14:10:29 +0100

* 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]