glsl: new glsl_strtod() wrapper to fix decimal point interpretation
We always want to use '.' as the decimal point. See http://bugs.freedesktop.org/show_bug.cgi?id=24531 NOTE: this is a candidate for the 7.10 branch.
This commit is contained in:
@@ -62,7 +62,7 @@ read_atom(void *ctx, const char *& src)
|
||||
|
||||
// Check if the atom is a number.
|
||||
char *float_end = NULL;
|
||||
double f = strtod(src, &float_end);
|
||||
double f = glsl_strtod(src, &float_end);
|
||||
if (float_end != src) {
|
||||
char *int_end = NULL;
|
||||
int i = strtol(src, &int_end, 10);
|
||||
|
Reference in New Issue
Block a user