Skip to content

Commit

Permalink
fix more msvc-warnings (#16)
Browse files Browse the repository at this point in the history
fix more msvc-warnings
  • Loading branch information
arvidn committed Jun 18, 2016
1 parent 1ab6e3d commit 0c796e3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ env:
- variant=debug
- variant=release

branches:
only:
- master

# container-based builds
sudo: false
cache:
Expand Down
3 changes: 3 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
version: 1.0.{build}
branches:
only:
- master
skip_tags: true
clone_depth: 1
install:
Expand Down
6 changes: 3 additions & 3 deletions src/http_proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ namespace sim
return;
}

m_num_client_in_bytes += bytes_transferred;
m_num_client_in_bytes += int(bytes_transferred);

// scan for end of HTTP request
int req_len = find_request_len(m_client_in_buffer, m_num_client_in_bytes);
Expand Down Expand Up @@ -183,7 +183,7 @@ namespace sim
}
memmove(&m_server_out_buffer + m_num_server_out_bytes
, out_request.data(), out_request.size());
m_num_server_out_bytes += out_request.size();
m_num_server_out_bytes += int(out_request.size());

if (!m_server_connection.is_open())
{
Expand Down Expand Up @@ -284,7 +284,7 @@ namespace sim

memmove(&m_server_out_buffer[0], m_server_out_buffer + bytes_transferred
, m_num_server_out_bytes - bytes_transferred);
m_num_server_out_bytes -= bytes_transferred;
m_num_server_out_bytes -= int(bytes_transferred);

if (m_num_server_out_bytes > 0)
write_server_send_buffer();
Expand Down
2 changes: 1 addition & 1 deletion src/tcp_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ namespace ip {
boost::system::error_code ec;
// null_buffers notifies the handler when data is available, without
// reading any
int bytes = available(ec);
int const bytes = int(available(ec));
if (ec)
{
m_io_service.post(std::bind(handler, ec, 0));
Expand Down

0 comments on commit 0c796e3

Please sign in to comment.