diff options
author | Neil Roberts <[email protected]> | 2009-10-14 23:25:04 +0100 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-10-15 08:57:07 -0600 |
commit | 269f16cd96fdbee5d178130171b4ef40258f61cf (patch) | |
tree | 2fa8a05f4d981e212ce3aa891901ca28462795a7 | |
parent | 31f7e8efb25a77e3bdfb6e9850cf31e339060976 (diff) |
mesa: Use _mesa_strtod in the lexer for assembly shaders
See bug 24531.
-rw-r--r-- | src/mesa/shader/program_lexer.l | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/shader/program_lexer.l b/src/mesa/shader/program_lexer.l index d2402174816..c2803ff7074 100644 --- a/src/mesa/shader/program_lexer.l +++ b/src/mesa/shader/program_lexer.l @@ -22,6 +22,7 @@ * DEALINGS IN THE SOFTWARE. */ #include "main/glheader.h" +#include "main/imports.h" #include "prog_instruction.h" #include "prog_statevars.h" @@ -318,19 +319,19 @@ ARRAYSHADOW2D { return_token_or_IDENTIFIER(require_ARB_fp && require return INTEGER; } {num}?{frac}{exp}? { - yylval->real = strtod(yytext, NULL); + yylval->real = _mesa_strtod(yytext, NULL); return REAL; } {num}"."/[^.] { - yylval->real = strtod(yytext, NULL); + yylval->real = _mesa_strtod(yytext, NULL); return REAL; } {num}{exp} { - yylval->real = strtod(yytext, NULL); + yylval->real = _mesa_strtod(yytext, NULL); return REAL; } {num}"."{exp} { - yylval->real = strtod(yytext, NULL); + yylval->real = _mesa_strtod(yytext, NULL); return REAL; } |