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
......@@ -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;
......
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