projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8a4ad4
)
Arg. I can't code.. Test that we don't recongnize '0' as having a leading zero..
author
Karl Rasche
<karlrasche@gmail.com>
Tue, 9 Dec 2003 19:14:41 +0000
(19:14 +0000)
committer
Karl Rasche
<karlrasche@gmail.com>
Tue, 9 Dec 2003 19:14:41 +0000
(19:14 +0000)
src/mesa/main/arbparse.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/arbparse.c
b/src/mesa/main/arbparse.c
index 25c1d7b7adaa18d1b61bad5823c9e4402f5dea39..fac0d510f6a6afb62c45cf9c080625c1033be46d 100644
(file)
--- a/
src/mesa/main/arbparse.c
+++ b/
src/mesa/main/arbparse.c
@@
-2916,7
+2916,7
@@
parse_float (GLubyte ** inst, struct arb_program *Program)
* the .). We can have leading 0's here, which parse_integer will ignore,
* so we'll check for those first
*/
- while (
**inst == '0'
)
+ while (
(**inst == '0') && ( *(*inst+1) != 0)
)
{
leading_zeros++;
(*inst)++;