diff --git a/include/boost/iostreams/detail/buffer.hpp b/include/boost/iostreams/detail/buffer.hpp index 2b57196..c2b72ac 100755 --- a/include/boost/iostreams/detail/buffer.hpp +++ b/include/boost/iostreams/detail/buffer.hpp @@ -96,7 +96,8 @@ basic_buffer::basic_buffer() : buf_(0), size_(0) { } template basic_buffer::basic_buffer(std::streamsize buffer_size) - : buf_(allocator_type().allocate(buffer_size, 0)), size_(buffer_size) + : buf_(static_cast(allocator_type().allocate(buffer_size, 0))), + size_(buffer_size) // Cast for SunPro 5.3. { } template