From 82cf7b49ca365a80a58632bfbeba796e61338ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 1 Nov 2016 00:14:44 +0100 Subject: [PATCH] Fixed coordinates conversion --- src/fitparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fitparser.cpp b/src/fitparser.cpp index 6fcb9b5c..6d0a96ef 100644 --- a/src/fitparser.cpp +++ b/src/fitparser.cpp @@ -176,12 +176,12 @@ bool FITParser::parseData(MessageDefinition *def, quint8 offset) case 0: if (val != 0x7fffffff) trackpoint.rcoordinates().setLat( - (val / (double)0x7fffffff) * 180); + ((qint32)val / (double)0x7fffffff) * 180); break; case 1: if (val != 0x7fffffff) trackpoint.rcoordinates().setLon( - (val / (double)0x7fffffff) * 180); + ((qint32)val / (double)0x7fffffff) * 180); break; case 2: if (val != 0xffff)