Skip to content

Commit faf1236

Browse files
mgreterxzyfer
authored andcommitted
Fix hardcoded variable name in recursion guard macro
1 parent 648f763 commit faf1236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ast_def_macros.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class LocalOption {
3333

3434
#define NESTING_GUARD(name) \
3535
LocalOption<size_t> cnt_##name(name, name + 1); \
36-
if (nestings > MAX_NESTING) throw Exception::NestingLimitError(pstate); \
36+
if (name > MAX_NESTING) throw Exception::NestingLimitError(pstate); \
3737

3838
#define ATTACH_OPERATIONS()\
3939
virtual void perform(Operation<void>* op) { (*op)(this); }\

0 commit comments

Comments
 (0)