Skip to content

Commit

Permalink
fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
yeggor committed Sep 30, 2024
1 parent 0229483 commit b949176
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions efiXplorer/3rd/nlohmann_json/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13952,7 +13952,11 @@ class json_pointer
const char* p = s.c_str();
char* p_end = nullptr;
errno = 0; // strtoull doesn't reset errno
#if defined(_MSC_VER)
const unsigned long long res = strtoull(p, &p_end, 10); // NOLINT(runtime/int)
#else
const unsigned long long res = std::strtoull(p, &p_end, 10); // NOLINT(runtime/int)
#endif
if (p == p_end // invalid input or empty string
|| errno == ERANGE // out of range
|| JSON_HEDLEY_UNLIKELY(static_cast<std::size_t>(p_end - p) != s.size())) // incomplete read
Expand Down

0 comments on commit b949176

Please sign in to comment.