- code cleanup based on additional gcc warnings

This commit is contained in:
Mark Vejvoda 2013-11-19 06:58:52 +00:00
parent 94684c66a4
commit 33d87512b0
2 changed files with 4 additions and 4 deletions

View File

@ -2213,7 +2213,7 @@ bool NetworkMessageSynchNetworkGameDataStatus::receive(Socket* socket) {
fromEndianHeader();
// Here we loop possibly multiple times
int packetLoopCount = 1;
if(data.header.techCRCFileCount > NetworkMessageSynchNetworkGameDataStatus::maxFileCRCPacketCount) {
if(data.header.techCRCFileCount > (uint32)NetworkMessageSynchNetworkGameDataStatus::maxFileCRCPacketCount) {
packetLoopCount = (data.header.techCRCFileCount / NetworkMessageSynchNetworkGameDataStatus::maxFileCRCPacketCount);
if(data.header.techCRCFileCount % NetworkMessageSynchNetworkGameDataStatus::maxFileCRCPacketCount > 0) {
packetLoopCount++;
@ -2258,7 +2258,7 @@ void NetworkMessageSynchNetworkGameDataStatus::send(Socket* socket) {
if(totalFileCount > 0) {
// Here we loop possibly multiple times
int packetLoopCount = 1;
if(totalFileCount > NetworkMessageSynchNetworkGameDataStatus::maxFileCRCPacketCount) {
if(totalFileCount > (uint32)NetworkMessageSynchNetworkGameDataStatus::maxFileCRCPacketCount) {
packetLoopCount = (totalFileCount / NetworkMessageSynchNetworkGameDataStatus::maxFileCRCPacketCount);
if(totalFileCount % NetworkMessageSynchNetworkGameDataStatus::maxFileCRCPacketCount > 0) {
packetLoopCount++;

View File

@ -1767,7 +1767,7 @@ void Map::saveGame(XmlNode *rootNode) const {
exploredList += ",";
}
for(unsigned int j = 0; j < GameConstants::maxPlayers; ++j) {
for(unsigned int j = 0; j < (unsigned int)GameConstants::maxPlayers; ++j) {
if(j > 0) {
exploredList += "|";
}
@ -1779,7 +1779,7 @@ void Map::saveGame(XmlNode *rootNode) const {
visibleList += ",";
}
for(unsigned int j = 0; j < GameConstants::maxPlayers; ++j) {
for(unsigned int j = 0; j < (unsigned int)GameConstants::maxPlayers; ++j) {
if(j > 0) {
visibleList += "|";
}