diff --git a/src/common/garmin.h b/src/common/garmin.h index a68c99d0..380a4fe6 100644 --- a/src/common/garmin.h +++ b/src/common/garmin.h @@ -10,9 +10,7 @@ inline double toWGS32(qint32 v) inline double toWGS24(qint32 v) { - return (v < 0x800000) - ? (double)v * 360.0 / (double)(1U<<24) - : (double)(v - 0x1000000) * 360.0 / (double)(1<<24); + return toWGS32(v<<8); } #endif // GARMIN_H