diff options
-rw-r--r-- | src/pyscanner.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pyscanner.l b/src/pyscanner.l index 6660915..ed471ed 100644 --- a/src/pyscanner.l +++ b/src/pyscanner.l @@ -1438,7 +1438,7 @@ static yy_size_t yyread(yyscan_t yyscanner,char *buf,yy_size_t max_size) { struct yyguts_t *yyg = (struct yyguts_t*)yyscanner; yy_size_t c=0; - const char *p = yyextra->inputString + yyextra->inputPosition; + const char *p = yyextra->inputString.data() + yyextra->inputPosition; while ( c < max_size && *p ) { *buf++ = *p++; c++; } yyextra->inputPosition+=c; return c; |