diff --git a/src/json.hpp b/src/json.hpp index 2abaa93d0..5a51ef318 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -7970,9 +7970,9 @@ basic_json_parser_63: return; } - const std::ptrdiff_t offset_start = m_start - m_content; - const std::ptrdiff_t offset_marker = m_marker - m_start; - const std::ptrdiff_t offset_cursor = m_cursor - m_start; + const auto offset_start = m_start - m_content; + const auto offset_marker = m_marker - m_start; + const auto offset_cursor = m_cursor - m_start; m_buffer.erase(0, static_cast(offset_start)); std::string line; diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index 2e25bdcf8..dcd7b7ec1 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -7280,9 +7280,9 @@ class basic_json return; } - const std::ptrdiff_t offset_start = m_start - m_content; - const std::ptrdiff_t offset_marker = m_marker - m_start; - const std::ptrdiff_t offset_cursor = m_cursor - m_start; + const auto offset_start = m_start - m_content; + const auto offset_marker = m_marker - m_start; + const auto offset_cursor = m_cursor - m_start; m_buffer.erase(0, static_cast(offset_start)); std::string line;