summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/shader/arbprogparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c
index 4e92d5017e3..2bf54c62158 100644
--- a/src/mesa/shader/arbprogparse.c
+++ b/src/mesa/shader/arbprogparse.c
@@ -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;