fix warnings if some want to use c++11

This commit is contained in:
[CST] Focus
2014-04-17 11:15:51 +04:00
parent ebf37fd192
commit c78676f7fd
8 changed files with 16 additions and 16 deletions

View File

@@ -603,6 +603,6 @@ void CMotorControl::readNetwork()
network = "unknown";
char net[100];
snprintf(net, sizeof(net), "%03d.%d, %s", abs(pos)/10, abs(pos)%10, network.c_str());
snprintf(net, sizeof(net), "%03d.%d, %s", abs((int)pos)/10, abs((int)pos)%10, network.c_str());
network = net;
}