From 057401f5f2b4bb1ea143da02c773ac18d1bb9a2e Mon Sep 17 00:00:00 2001 From: Daniel Belcher Date: Tue, 5 Mar 2019 14:25:55 -0800 Subject: [PATCH] Suppress conversion warning in Ratpack/conv.cpp. When building for x64, the compiler complains: warning C4267: 'argument': conversion from 'size_t' to 'ULONG', possible loss of data In practice, the number string will not exceed a ULONG in length. --- src/CalcManager/Ratpack/conv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CalcManager/Ratpack/conv.cpp b/src/CalcManager/Ratpack/conv.cpp index 5260991..f7112bb 100644 --- a/src/CalcManager/Ratpack/conv.cpp +++ b/src/CalcManager/Ratpack/conv.cpp @@ -578,7 +578,7 @@ PNUMBER StringToNumber(wstring_view numberString, uint32_t radix, int32_t precis long expValue = 0L; // expValue is exponent mantissa, should be unsigned PNUMBER pnumret = nullptr; - createnum(pnumret, numberString.length()); + createnum(pnumret, static_cast(numberString.length())); pnumret->sign = 1L; pnumret->cdigit = 0; pnumret->exp = 0;