From 2a6f63d995a8ec13c4f493229115d608c16ca43c Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Wed, 11 Oct 2017 23:36:51 +0300 Subject: [PATCH] Resolve C4305 - double constant truncated to float --- test/testvalueflow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testvalueflow.cpp b/test/testvalueflow.cpp index c9a88f520..8bdd2d4c4 100644 --- a/test/testvalueflow.cpp +++ b/test/testvalueflow.cpp @@ -1784,7 +1784,7 @@ private: " x += 67;\n" " return x;\n" "}"; - ASSERT_EQUALS(true, testValueOfX(code, 4U, 123.45 + 67, 0.01)); + ASSERT_EQUALS(true, testValueOfX(code, 4U, 123.45F + 67, 0.01F)); } void valueFlowForwardCorrelatedVariables() {