From 9444ecad16754ba5e085cdb2d6957c77bf1a9e5c Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Tue, 6 Nov 2018 20:44:59 +0000 Subject: [PATCH] Fix Windows compile warnings. --- MobileGPS.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MobileGPS.cpp b/MobileGPS.cpp index 6f92aae..27721bd 100644 --- a/MobileGPS.cpp +++ b/MobileGPS.cpp @@ -93,8 +93,8 @@ void CMobileGPS::sendReport() if (pLatitude == NULL || pLongitude == NULL) return; - float latitude = ::atof(pLatitude); - float longitude = ::atof(pLongitude); + float latitude = float(::atof(pLatitude)); + float longitude = float(::atof(pLongitude)); m_network->writeHomePosition(latitude, longitude); }