mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 15:10:48 +01:00
Don't fall back to _atoi64
We only did this on windows when building with MSVC 6 and earlier, which is now considered a screamingly bad idea.
This commit is contained in:
parent
e37c1df9cd
commit
b88d00fea3
1 changed files with 0 additions and 8 deletions
|
@ -1233,15 +1233,7 @@ tor_parse_uint64(const char *s, int base, uint64_t min,
|
|||
#ifdef HAVE_STRTOULL
|
||||
r = (uint64_t)strtoull(s, &endptr, base);
|
||||
#elif defined(_WIN32)
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1300
|
||||
tor_assert(base <= 10);
|
||||
r = (uint64_t)_atoi64(s);
|
||||
endptr = (char*)s;
|
||||
while (TOR_ISSPACE(*endptr)) endptr++;
|
||||
while (TOR_ISDIGIT(*endptr)) endptr++;
|
||||
#else
|
||||
r = (uint64_t)_strtoui64(s, &endptr, base);
|
||||
#endif
|
||||
#elif SIZEOF_LONG == 8
|
||||
r = (uint64_t)strtoul(s, &endptr, base);
|
||||
#else
|
||||
|
|
Loading…
Add table
Reference in a new issue