From 3d6c68f2c7a9c6df8a6846164b30836ccb285a15 Mon Sep 17 00:00:00 2001 From: John Ronan Date: Sun, 4 Jun 2017 13:51:12 +0100 Subject: [PATCH] Changed the Cast rather than the const --- YSFGateway/APRSWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YSFGateway/APRSWriter.cpp b/YSFGateway/APRSWriter.cpp index 283b53f..2a771a7 100644 --- a/YSFGateway/APRSWriter.cpp +++ b/YSFGateway/APRSWriter.cpp @@ -151,7 +151,7 @@ void CAPRSWriter::sendIdFrames() if (m_txFrequency != 0U) { float offset = float(int(m_rxFrequency) - int(m_txFrequency)) / 1000000.0F; ::sprintf(desc, "MMDVM Voice %.5LfMHz %c%.4lfMHz", - float(m_txFrequency) / 1000000.0L, + (long double)(m_txFrequency) / 1000000.0F, offset < 0.0F ? '-' : '+', ::fabs(offset)); } else {