Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Nov 28, 2021
1 parent 6eacc35 commit cd6261f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/session_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3579,7 +3579,7 @@ namespace {
if (m_dht)
m_dht->add_node(n);
else if (m_dht_nodes.size() >= 200)
m_dht_nodes[random(m_dht_nodes.size() - 1)] = n;
m_dht_nodes[random(uint32_t(m_dht_nodes.size()) - 1)] = n;
else
m_dht_nodes.push_back(n);
}
Expand Down
2 changes: 1 addition & 1 deletion test/setup_transfer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ std::string get_python()
if (req_size > 1 && req_size < 4096)
{
std::vector<char> buf(req_size);
DWORD const sz = GetEnvironmentVariable("PYTHON_INTERPRETER", buf.data(), buf.size());
DWORD const sz = GetEnvironmentVariable("PYTHON_INTERPRETER", buf.data(), DWORD(buf.size()));
if (size_t(sz) == buf.size() - 1) return buf.data();
}
#endif
Expand Down

0 comments on commit cd6261f

Please sign in to comment.