mirror of
https://github.com/pocoproject/poco.git
synced 2026-01-02 02:37:58 +01:00
fix: Resolve compiler warnings across multiple modules
This commit is contained in:
@@ -44,14 +44,14 @@ MultipartStreamBuf::~MultipartStreamBuf()
|
||||
}
|
||||
|
||||
|
||||
int MultipartStreamBuf::readFromDevice(char* buffer, std::streamsize length)
|
||||
std::streamsize MultipartStreamBuf::readFromDevice(char* buffer, std::streamsize length)
|
||||
{
|
||||
poco_assert (!_boundary.empty() && _boundary.length() < length - 6);
|
||||
poco_assert (!_boundary.empty() && _boundary.length() < static_cast<std::size_t>(length - 6));
|
||||
|
||||
static const int eof = std::char_traits<char>::eof();
|
||||
std::streambuf& buf = *_istr.rdbuf();
|
||||
|
||||
int n = 0;
|
||||
std::streamsize n = 0;
|
||||
int ch = buf.sbumpc();
|
||||
if (ch == eof) return -1;
|
||||
*buffer++ = (char) ch; ++n;
|
||||
|
||||
Reference in New Issue
Block a user