diff options
author | Michal Krol <mjkrol@gmail.org> | 2005-04-14 10:19:19 +0000 |
---|---|---|
committer | Michal Krol <mjkrol@gmail.org> | 2005-04-14 10:19:19 +0000 |
commit | 98e35025ba22261bb82b9a6fce72c68179e52b57 (patch) | |
tree | e3dd7c505b50c4d97b5cf8870c829fa1283f2fbc /src/mesa/shader | |
parent | fd451b6d01d147dfbe209df31d2135a10ff14a7b (diff) |
do not use isdigit() - can cause link errors
Diffstat (limited to 'src/mesa/shader')
-rw-r--r-- | src/mesa/shader/arbprogparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c index 4e92d5017e..2bf54c6215 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; |