Unverified Commit f5b780fa authored by Dennis Jenkins's avatar Dennis Jenkins Committed by GitHub

Merge pull request #512 from gnyiri/master

Fix ARM build issue (type mismatch in std::max)
parents ba056c41 01bd4d66
......@@ -106,7 +106,7 @@ DynamicStreamBuf::overflow(DynamicStreamBuf::int_type ch) {
if (!traits_type::eq_int_type(ch, traits_type::eof())) {
const auto size = data_.size();
if (size < maxSize_) {
reserve(std::max(size, 1LU) * 2);
reserve((size ? size : 1u) * 2);
*pptr() = ch;
pbump(1);
return traits_type::not_eof(ch);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment