mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 02:10:12 +01:00
mesa: Use _mesa_strtod in the lexer for assembly shaders
See bug 24531.
This commit is contained in:
parent
31f7e8efb2
commit
269f16cd96
1 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue