aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-08-09 09:58:16 -0400
committerNick Mathewson <nickm@torproject.org>2017-08-28 10:21:29 -0400
commitb88d00fea35630d96bf91bda362922af43730a04 (patch)
tree1ece99ab69755887fa1989e6f3a96d33c39433fa
parente37c1df9cd79bb8c540aded6ff35ea4cde8ddc60 (diff)
downloadtor-b88d00fea35630d96bf91bda362922af43730a04.tar.gz
tor-b88d00fea35630d96bf91bda362922af43730a04.zip
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.
-rw-r--r--src/common/util.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 0858d17fe6..9cd9ebdc4d 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -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