Skip to content

Commit

Permalink
Merge pull request #793 from sonulohani/develop
Browse files Browse the repository at this point in the history
Error : 'identifier "size_t" is undefined' in linux
  • Loading branch information
nlohmann authored Oct 21, 2017
2 parents 2e281ba + 92da334 commit 33df325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1544,7 +1544,7 @@ class input_buffer_adapter : public input_adapter_protocol
std::string read(std::size_t offset, std::size_t length) override
{
// avoid reading too many characters
const auto max_length = static_cast<size_t>(limit - start);
const auto max_length = static_cast<std::size_t>(limit - start);
return std::string(start + offset, (std::min)(length, max_length - offset));
}

Expand Down

0 comments on commit 33df325

Please sign in to comment.