From b0b7f5e5868521a690eb62dea4fb65f9bbc523f5 Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Wed, 1 May 2013 06:18:21 -0500 Subject: [PATCH] explicitly casts assignments with differing signedness references #218 --- websocketpp/http/impl/response.hpp | 2 +- websocketpp/processors/hybi00.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/websocketpp/http/impl/response.hpp b/websocketpp/http/impl/response.hpp index 1d3f2204f3..2eaf047b70 100644 --- a/websocketpp/http/impl/response.hpp +++ b/websocketpp/http/impl/response.hpp @@ -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(s.gcount()); if (s.fail() || s.eof()) { bytes_processed = this->consume(buf,bytes_read); diff --git a/websocketpp/processors/hybi00.hpp b/websocketpp/processors/hybi00.hpp index e46a5bab86..0024355910 100644 --- a/websocketpp/processors/hybi00.hpp +++ b/websocketpp/processors/hybi00.hpp @@ -67,7 +67,7 @@ public: explicit hybi00(bool secure, bool server, msg_manager_ptr manager) : processor(secure, server) , msg_hdr(0x00) - , msg_ftr(0xff) + , msg_ftr(static_cast(0xff)) , m_state(HEADER) , m_msg_manager(manager) {}