Commit d8578e58 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(isfloat_string): Don't look at bytes before the string.

parent 5dab2fb4
......@@ -1995,6 +1995,8 @@ isfloat_string (cp)
{
register int state;
char *start = cp;
state = 0;
if (*cp == '+' || *cp == '-')
cp++;
......@@ -2030,6 +2032,8 @@ isfloat_string (cp)
while (*cp >= '0' && *cp <= '9')
cp++;
}
else if (cp == start)
;
else if (cp[-1] == '+' && cp[0] == 'I' && cp[1] == 'N' && cp[2] == 'F')
{
state |= EXP_INT;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment