diff --git a/RSSIInterpolator.cpp b/RSSIInterpolator.cpp index b044beb..3d6eb06 100644 --- a/RSSIInterpolator.cpp +++ b/RSSIInterpolator.cpp @@ -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(raw, rssi)); } }