summaryrefslogtreecommitdiff
path: root/src/go-flex.skl
diff options
context:
space:
mode:
Diffstat (limited to 'src/go-flex.skl')
-rw-r--r--src/go-flex.skl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/go-flex.skl b/src/go-flex.skl
index 39b3cd1..f2807dd 100644
--- a/src/go-flex.skl
+++ b/src/go-flex.skl
@@ -763,7 +763,7 @@ void yyrestart(FILE * input_file, FlexLexer *yyscanner)
yy_create_buffer(yyscanner->yyin, flexInputBufferSize, yyscanner);
}
- yy_init_buffer(yy_current_buffer(yyscanner), input_file, yyscanner);
+ yy_init_buffer(yyscanner->yyBufferStack[yyscanner->yyBufferStackTop], input_file, yyscanner);
yy_load_buffer_state(yyscanner);
}