From 12b59249397e88465a99893244eb932cbfbf9e70 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sun, 6 Dec 2020 06:51:53 +0100 Subject: [PATCH] glr2.cc: fix when the stack is not expandable * 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