Commit 7b57113e authored by rswindell's avatar rswindell
Browse files

Avoid more stupid msvc10 ctype assertions.

parent 0275d931
......@@ -577,7 +577,7 @@ static jsval get_value(JSContext *cx, char* value)
for(p=value;*p;p++) {
if(*p=='.' && !f)
f=TRUE;
else if(!isdigit(*p))
else if(!isdigit((uchar)*p))
break;
}
if(*p==0) {
......@@ -590,7 +590,7 @@ static jsval get_value(JSContext *cx, char* value)
/* hexadecimal number? */
if(!strncmp(value,"0x",2)) {
for(p=value+2;*p;p++)
if(!isxdigit(*p))
if(!isxdigit((uchar)*p))
break;
if(*p==0) {
val=DOUBLE_TO_JSVAL((double)strtoul(value,NULL,0));
......
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