mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 15:00:11 +01:00
Arg. I can't code.. Test that we don't recongnize '0' as having a leading zero..
This commit is contained in:
parent
a8a4ad452e
commit
2e5ec27845
1 changed files with 1 additions and 1 deletions
|
|
@ -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)++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue