Fix 32-bit arm7 warnings

fix #232
This commit is contained in:
Vinnie Falco
2017-01-24 15:22:04 -05:00
parent d7e9a7ca3c
commit 8ea120f13f
3 changed files with 8 additions and 5 deletions

View File

@ -1,6 +1,7 @@
1.0.0-b25
* Fixes for WebSocket echo server
* Fix 32-bit arm7 warnings
API Changes:

View File

@ -83,7 +83,8 @@ class buffer_cat_helper<Bn...>::const_iterator
iter()
{
return *reinterpret_cast<
iter_t<I>*>(buf_.data());
iter_t<I>*>(static_cast<void*>(
buf_.data()));
}
template<std::size_t I>
@ -91,7 +92,8 @@ class buffer_cat_helper<Bn...>::const_iterator
iter() const
{
return *reinterpret_cast<
iter_t<I> const*>(buf_.data());
iter_t<I> const*>(static_cast<
void const*>(buf_.data()));
}
public:

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