From 2e5ec27845930607ecd3f545b8f0a46aa09b52fd Mon Sep 17 00:00:00 2001 From: Karl Rasche Date: Tue, 9 Dec 2003 19:14:41 +0000 Subject: Arg. I can't code.. Test that we don't recongnize '0' as having a leading zero.. --- src/mesa/main/arbparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/main/arbparse.c') diff --git a/src/mesa/main/arbparse.c b/src/mesa/main/arbparse.c index 25c1d7b..fac0d51 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)++; -- cgit v1.1