From b6ffc646af8ceac96b0c040d3c20c6208ced14a0 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Thu, 22 Dec 2016 09:04:46 +0000 Subject: [PATCH] Small clean up. --- RSSIInterpolator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } }