mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
do not use isdigit() - can cause link errors
This commit is contained in:
parent
fd451b6d01
commit
98e35025ba
1 changed files with 1 additions and 1 deletions
|
|
@ -702,7 +702,7 @@ parse_float_string(GLubyte ** inst, struct arb_program *Program, GLdouble *scale
|
|||
(*inst)++;
|
||||
}
|
||||
else { /* nonempty string-- parse out the digits */
|
||||
while (isdigit(**inst)) {
|
||||
while (**inst >= '0' && **inst <= '9') {
|
||||
GLubyte digit = *((*inst)++);
|
||||
value = value * 10.0 + (GLint) (digit - '0');
|
||||
oscale *= 10.0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue