projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd451b6
)
do not use isdigit() - can cause link errors
author
Michal Krol
<mjkrol@gmail.org>
Thu, 14 Apr 2005 10:19:19 +0000
(10:19 +0000)
committer
Michal Krol
<mjkrol@gmail.org>
Thu, 14 Apr 2005 10:19:19 +0000
(10:19 +0000)
src/mesa/shader/arbprogparse.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/arbprogparse.c
b/src/mesa/shader/arbprogparse.c
index
4e92d50
..
2bf54c6
100644
(file)
--- 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;