summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_lexer.lpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/glsl_lexer.lpp')
-rw-r--r--src/glsl/glsl_lexer.lpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/glsl_lexer.lpp b/src/glsl/glsl_lexer.lpp
index 6c1000876e1..b0afc44d5e9 100644
--- a/src/glsl/glsl_lexer.lpp
+++ b/src/glsl/glsl_lexer.lpp
@@ -231,7 +231,7 @@ void return VOID;
return INTCONSTANT;
}
0[0-7]* {
- yylval->n = strtol(yytext + 2, NULL, 8);
+ yylval->n = strtol(yytext, NULL, 8);
return INTCONSTANT;
}