mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
glr2.cc: fix when the stack is not expandable
* data/skeletons/glr2.cc (yyexpandGLRStackIfNeeded): Fix the implementation when !YYSTACKEXPANDABLE.
This commit is contained in:
@@ -1364,8 +1364,9 @@ class state_stack {
|
||||
}
|
||||
public:
|
||||
#else
|
||||
bool yyexpandGLRStackIfNeeded() {
|
||||
return yystateStack.spaceLeft() < YYHEADROOM;
|
||||
bool yyexpandGLRStackIfNeeded ()
|
||||
{
|
||||
return spaceLeft () < YYHEADROOM;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user