From 8c0f05c04bd229201117d004de8a9cd464ce8806 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Thu, 22 Dec 2016 10:29:39 +0000 Subject: [PATCH] Type correction. --- RSSIInterpolator.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/RSSIInterpolator.cpp b/RSSIInterpolator.cpp index 3d6eb06..b277fbc 100644 --- a/RSSIInterpolator.cpp +++ b/RSSIInterpolator.cpp @@ -78,12 +78,12 @@ int CRSSIInterpolator::interpolate(uint16_t val) const if (it == m_map.begin()) return it->second; - unsigned int x2 = it->first; - int y2 = it->second; + uint16_t x2 = it->first; + int y2 = it->second; --it; - unsigned int x1 = it->first; - int y1 = it->second; + uint16_t x1 = it->first; + int y1 = it->second; float p = float(val - x1) / float(x2 - x1);