fix epicsStrtod for 32 bit architectures

This commit is contained in:
zimoch committed 2025-07-24 10:21:14 +02:00
1 parent 6cc3a0b9e2
commit e6933b34cb
1 file changed
+2 -2
+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);