Fix 32-bit arm7 warnings

fix #232
This commit is contained in:
Vinnie Falco
2017-02-01 20:05:38 -05:00
parent 0474cc5df2
commit caa3b39ec2
3 changed files with 8 additions and 5 deletions
+3 -3
View File
@@ -598,9 +598,9 @@ basic_streambuf<Allocator>::prepare(size_type n) ->
while(n > 0)
{
auto const size = std::max(alloc_size_, n);
auto& e = *reinterpret_cast<element*>(
alloc_traits::allocate(this->member(),
sizeof(element) + size));
auto& e = *reinterpret_cast<element*>(static_cast<
void*>(alloc_traits::allocate(this->member(),
sizeof(element) + size)));
alloc_traits::construct(this->member(), &e, size);
list_.push_back(e);
if(out_ == list_.end())