From a831c787df2215eb3d062b7b9179966662829206 Mon Sep 17 00:00:00 2001 From: Niels Date: Wed, 10 Feb 2016 21:19:31 +0100 Subject: [PATCH] try to replace std::ptrdiff_t with auto (for #204) --- src/json.hpp | 6 +++--- src/json.hpp.re2c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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;