From 015641b896fb314995c1c788852a3355d4100b89 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sat, 1 Aug 2020 15:03:11 -0700 Subject: [PATCH] Fixed 'full' float display --- IDEHelper/WinDebugger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IDEHelper/WinDebugger.cpp b/IDEHelper/WinDebugger.cpp index eb042f67..de629005 100644 --- a/IDEHelper/WinDebugger.cpp +++ b/IDEHelper/WinDebugger.cpp @@ -7055,7 +7055,7 @@ String WinDebugger::DbgTypedValueToString(const DbgTypedValue& origTypedValue, c if (floatDisplayType == DwFloatDisplayType_Minimal) ExactMinimalFloatToStr(typedValue.mSingle, str); else if (floatDisplayType == DwFloatDisplayType_Full) - sprintf(str, "%1.9g", (float)typedValue.mDouble); + sprintf(str, "%1.9g", typedValue.mSingle); else if (floatDisplayType == DwFloatDisplayType_HexUpper) sprintf(str, "0x%04X", typedValue.mUInt32); else //if (floatDisplayType == DwFloatDisplayType_HexLower)