Skip to content
Snippets Groups Projects
Commit 10f3e191 authored by rswindell's avatar rswindell
Browse files

get_value no longer interprets n.n.n.n as a floating value.

parent 31abf30a
No related branches found
No related tags found
No related merge requests found
......@@ -413,7 +413,7 @@ static jsval get_value(JSContext *cx, char* value)
/* integer or float? */
for(p=value;*p;p++) {
if(*p=='.')
if(*p=='.' && !f)
f=TRUE;
else if(!isdigit(*p))
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment