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