fix epicsStrtod for 32 bit architectures

This commit is contained in:
2025-03-21 12:11:51 +01:00
parent 09f96d056a
commit 997746e5e2

View File

@ -362,9 +362,9 @@ epicsStrtod(const char *str, char **endp)
if (epicsStrnCaseCmp("0x", cp, 2) == 0) {
if (negative)
return strtol(str, endp, 16);
return strtoll(str, endp, 16);
else
return strtoul(str, endp, 16);
return strtoull(str, endp, 16);
}
if (!isalpha((int)*cp)) {
res = strtod(str, endp);