Fix 32-bit arm7 warnings

fix #232
This commit is contained in:
Vinnie Falco committed 2017-07-20 08:12:14 -07:00
1 parent d7e9a7ca3c
commit 8ea120f13f
3 files changed
+8 -5

No files matched your search

+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())