Fixing parseInt() (#1022)

This commit is contained in:
Richard Knoll
2018-08-01 12:45:56 -07:00
committed by GitHub
parent 56dedeff92
commit 6884b2bedf

View File

@ -237,6 +237,9 @@ double mystrtod(const char *p, char **endp) {
int pw = strtol(p, endp, 10); int pw = strtol(p, endp, 10);
v *= p10(pw); v *= p10(pw);
} }
else {
*endp = (char *) p;
}
return v; return v;
} }