fix epicsStrtod for 32 bit architectures

This commit is contained in:
2025-04-04 17:02:13 +02:00
committed by Andrew Johnson
parent e13d65f6f5
commit b833f12129
+2 -2
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);