diff options
Diffstat (limited to 'glsl_lexer.lpp')
-rw-r--r-- | glsl_lexer.lpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/glsl_lexer.lpp b/glsl_lexer.lpp index cd150f81ca..9a3037a8ff 100644 --- a/glsl_lexer.lpp +++ b/glsl_lexer.lpp @@ -330,11 +330,10 @@ precision return PRECISION; %% void -_mesa_glsl_lexer_ctor(struct _mesa_glsl_parse_state *state, - const char *string, size_t len) +_mesa_glsl_lexer_ctor(struct _mesa_glsl_parse_state *state, const char *string) { yylex_init_extra(state, & state->scanner); - yy_scan_bytes(string, len, state->scanner); + yy_scan_string(string, state->scanner); } void |