Skip to content

Commit

Permalink
Merge pull request #1701 from LemonBoy/ocaml-stack
Browse files Browse the repository at this point in the history
Fix an off-by-one error in the tag stack traversing
  • Loading branch information
masatake committed Mar 7, 2018
2 parents e5c86f7 + 92d8be1 commit e777266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parsers/ocaml.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ static contextType popStrongContext ( void )
static void jumpToMatchContext ( void )
{
int i;
for (i = stackIndex; i >= 0; --i)
for (i = stackIndex - 1; i >= 0; --i)
{
if (stack[i].type == ContextMatch)
{
Expand Down

0 comments on commit e777266

Please sign in to comment.