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:
|
public:
|
||||||
#else
|
#else
|
||||||
bool yyexpandGLRStackIfNeeded() {
|
bool yyexpandGLRStackIfNeeded ()
|
||||||
return yystateStack.spaceLeft() < YYHEADROOM;
|
{
|
||||||
|
return spaceLeft () < YYHEADROOM;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user