Skip to content

Commit

Permalink
Merge pull request ethereum-mining#1910 from Amf1k/master
Browse files Browse the repository at this point in the history
fix lexical cast exeption on parse pool port
  • Loading branch information
MariusVanDerWijden authored Jun 21, 2019
2 parents 1731307 + face702 commit 0fecb40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpoolprotocols/PoolURI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ URI::URI(std::string uri, bool _sim) : m_uri{std::move(uri)}
if (std::regex_search(m_hostinfo, matches, host_pattern, std::regex_constants::match_default))
{
m_host = matches[1].str();
m_port = boost::lexical_cast<short>(matches[2].str());
m_port = boost::lexical_cast<unsigned short>(matches[2].str());
}
else
{
Expand Down

0 comments on commit 0fecb40

Please sign in to comment.