diff --git a/libs/core/core.cpp b/libs/core/core.cpp index 0e2b83c7..3a705f49 100644 --- a/libs/core/core.cpp +++ b/libs/core/core.cpp @@ -237,6 +237,9 @@ double mystrtod(const char *p, char **endp) { int pw = strtol(p, endp, 10); v *= p10(pw); } + else { + *endp = (char *) p; + } return v; }