Error : 'identifier "size_t" is undefined' in linux
This commit is contained in:
parent
2e281ba64b
commit
92da334862
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue