Small clean up.
This commit is contained in:
parent
ea8f09dbf3
commit
b6ffc646af
1 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ bool CRSSIInterpolator::load(const std::string& filename)
|
||||||
char* p2 = ::strtok(NULL, " \t\r\n");
|
char* p2 = ::strtok(NULL, " \t\r\n");
|
||||||
|
|
||||||
if (p1 != NULL && p2 != NULL) {
|
if (p1 != NULL && p2 != NULL) {
|
||||||
uint16_t raw = (unsigned int)::atoi(p1);
|
uint16_t raw = uint16_t(::atoi(p1));
|
||||||
int rssi = ::atoi(p2);
|
int rssi = ::atoi(p2);
|
||||||
m_map.insert(std::pair<uint16_t, int>(raw, rssi));
|
m_map.insert(std::pair<uint16_t, int>(raw, rssi));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue