diff options
author | Karl Rasche <[email protected]> | 2003-12-09 19:14:41 +0000 |
---|---|---|
committer | Karl Rasche <[email protected]> | 2003-12-09 19:14:41 +0000 |
commit | 2e5ec27845930607ecd3f545b8f0a46aa09b52fd (patch) | |
tree | 8fcc710a09f52a1060f1fe4c7cf153d7be46b43b /src | |
parent | a8a4ad452ee3b7c99737cee053f849f3b5039988 (diff) |
Arg. I can't code.. Test that we don't recongnize '0' as having a leading zero..
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/arbparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/arbparse.c b/src/mesa/main/arbparse.c index 25c1d7b7ada..fac0d510f6a 100644 --- 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)++; |