Fixed linux compilation.

This commit is contained in:
hiker
2016-02-29 11:09:40 +11:00
parent 00347d2743
commit a6fbd019fb

View File

@@ -135,7 +135,7 @@ std::string BareNetworkString::getLogMessage() const
{
oss << "0x" << std::hex << std::setw(3) << std::setfill('0')
<< line << " | ";
unsigned int upper_limit = std::min(line+16, m_buffer.size());
unsigned int upper_limit = std::min(line+16, (unsigned int)m_buffer.size());
for(unsigned int i=line; i<upper_limit; i++)
{
oss << std::hex << std::setfill('0') << std::setw(2)