[Client] Fix comparison between signed and unsigned integer expressions

This commit is contained in:
Koncord 2017-05-03 02:43:00 +08:00
parent 01bdbfecfb
commit ccae9590cc

View file

@ -86,7 +86,7 @@ string comparePlugins(PacketPreInit::PluginContainer checksums, PacketPreInit::P
if(checksumsResponse[i].second.size() > 0) if(checksumsResponse[i].second.size() > 0)
{ {
if(full) if(full)
for(int j = 0; j < checksumsResponse[i].second.size(); j++) for(size_t j = 0; j < checksumsResponse[i].second.size(); j++)
printWithWidth(sstr, intToHexStr(checksumsResponse[i].second[j]), 14); printWithWidth(sstr, intToHexStr(checksumsResponse[i].second[j]), 14);
else else
sstr << intToHexStr(checksumsResponse[i].second[0]); sstr << intToHexStr(checksumsResponse[i].second[0]);