explicitly casts assignments with differing signedness references #218

This commit is contained in:
Peter Thorson
2013-05-01 06:18:21 -05:00
parent 371aa07180
commit b0b7f5e586
2 changed files with 2 additions and 2 deletions

View File

@@ -139,7 +139,7 @@ inline size_t response::consume(std::istream & s) {
while (s.good()) {
s.getline(buf,istream_buffer);
bytes_read = s.gcount();
bytes_read = static_cast<size_t>(s.gcount());
if (s.fail() || s.eof()) {
bytes_processed = this->consume(buf,bytes_read);

View File

@@ -67,7 +67,7 @@ public:
explicit hybi00(bool secure, bool server, msg_manager_ptr manager)
: processor<config>(secure, server)
, msg_hdr(0x00)
, msg_ftr(0xff)
, msg_ftr(static_cast<char>(0xff))
, m_state(HEADER)
, m_msg_manager(manager) {}