fix warnings if some want to use c++11

Origin commit data
------------------
Branch: ni/coolstream
Commit: c78676f7fd
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-04-17 (Thu, 17 Apr 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2014-04-17 11:15:51 +04:00
parent cbff8cc356
commit 61bc54199f
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;
}