glr2.cc: fix when the stack is not expandable

* data/skeletons/glr2.cc (yyexpandGLRStackIfNeeded): Fix the
implementation when !YYSTACKEXPANDABLE.
This commit is contained in:
Akim Demaille
2020-12-06 06:51:53 +01:00
parent d4188398f1
commit 12b5924939

View File

@@ -1364,8 +1364,9 @@ class state_stack {
} }
public: public:
#else #else
bool yyexpandGLRStackIfNeeded() { bool yyexpandGLRStackIfNeeded ()
return yystateStack.spaceLeft() < YYHEADROOM; {
return spaceLeft () < YYHEADROOM;
} }
#endif #endif