From 03f2ebc768b63749bbca88c8ecb4480826b59c00 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 29 Jan 2020 02:26:47 -0500 Subject: [PATCH] CTextParser: Resolve double->float truncation within ParseTag() This should be prepended with the f suffix to prevent double to float implicit truncation. --- Runtime/GuiSys/CTextParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/GuiSys/CTextParser.cpp b/Runtime/GuiSys/CTextParser.cpp index 376636f32..f1852f15a 100644 --- a/Runtime/GuiSys/CTextParser.cpp +++ b/Runtime/GuiSys/CTextParser.cpp @@ -114,7 +114,7 @@ void CTextParser::ParseTag(CTextExecuteBuffer& out, const char16_t* str, int len out.AddColorOverride(val, color); } } else if (BeginsWith(str, len, u"line-spacing=")) { - out.AddLineSpacing(ParseInt(str + 13, len - 13, true) / 100.0); + out.AddLineSpacing(ParseInt(str + 13, len - 13, true) / 100.0f); } else if (BeginsWith(str, len, u"line-extra-space=")) { out.AddLineExtraSpace(ParseInt(str + 17, len - 17, true)); } else if (BeginsWith(str, len, u"just=")) {