summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2009-10-14 23:25:04 +0100
committerBrian Paul <brianp@vmware.com>2009-10-15 08:57:07 -0600
commit269f16cd96fdbee5d178130171b4ef40258f61cf (patch)
tree2fa8a05f4d981e212ce3aa891901ca28462795a7 /src
parent31f7e8efb25a77e3bdfb6e9850cf31e339060976 (diff)
mesa: Use _mesa_strtod in the lexer for assembly shaders
See bug 24531.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/program_lexer.l9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/shader/program_lexer.l b/src/mesa/shader/program_lexer.l
index d240217481..c2803ff707 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;
}