Skip to content

Commit

Permalink
scanner: fix default of yy_top_state()
Browse files Browse the repository at this point in the history
extend fix when `YY_G` is used (reentrant scanner).
  • Loading branch information
jannick0 authored and westes committed Mar 13, 2018
1 parent 67b3e44 commit 3971b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flex.skl
Original file line number Diff line number Diff line change
Expand Up @@ -2465,7 +2465,7 @@ m4_ifdef( [[M4_YY_NO_TOP_STATE]],,
%endif
{
M4_YY_DECL_GUTS_VAR();
return yy_start_stack_ptr > 0 ? YY_G(yy_start_stack)[YY_G(yy_start_stack_ptr) - 1] : YY_START;
return YY_G(yy_start_stack_ptr) > 0 ? YY_G(yy_start_stack)[YY_G(yy_start_stack_ptr) - 1] : YY_START;
}
]])

Expand Down

0 comments on commit 3971b61

Please sign in to comment.