Skip to content

Commit 5d80f93

Browse files
authored
Merge pull request #33 from timotheecour/pr_fix_npeg_D20210519T113112
fix for nim-lang/Nim#18050
2 parents e7bd87d + 7076aac commit 5d80f93

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/npeg/stack.nim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ proc initStack*[T](name: string, len: int, max: int=int.high): Stack[T] =
2323
2424
proc grow*[T](s: var Stack[T]) =
2525
if s.top >= s.max:
26+
mixin NPegException
2627
raise newException(NPegException, s.name & " stack overflow, depth>" & $s.max)
2728
s.frames.setLen s.frames.len * 2
2829

0 commit comments

Comments
 (0)