From 18ca8a2233a4be45944ce8d772f2930362641534 Mon Sep 17 00:00:00 2001 From: Alexandre Ganea Date: Mon, 3 Jun 2019 18:46:30 +0000 Subject: [PATCH] Silence 'warning C4305: 'initializing': truncation from 'double' to 'float'' with MSVC 19.16.27021.1 (VS2017 15.9.12) llvm-svn: 362437 --- .../Utility/ReproducerInstrumentationTest.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lldb/unittests/Utility/ReproducerInstrumentationTest.cpp b/lldb/unittests/Utility/ReproducerInstrumentationTest.cpp index fef0ab97d743..2a4ebac2df90 100644 --- a/lldb/unittests/Utility/ReproducerInstrumentationTest.cpp +++ b/lldb/unittests/Utility/ReproducerInstrumentationTest.cpp @@ -31,7 +31,7 @@ struct Pod { bool a = true; bool b = false; char c = 'a'; - float d = 1.1; + float d = 1.1f; int e = 2; long long f = 3; long g = 4; @@ -443,7 +443,7 @@ TEST(RecordReplayTest, InstrumentedFoo) { { int b = 200; - float c = 300.3; + float c = 300.3f; double e = 400.4; InstrumentedFoo foo(0); @@ -471,7 +471,7 @@ TEST(RecordReplayTest, InstrumentedFooSameThis) { g_serializer.emplace(os); int b = 200; - float c = 300.3; + float c = 300.3f; double e = 400.4; InstrumentedFoo *foo = new InstrumentedFoo(0); @@ -517,7 +517,7 @@ TEST(RecordReplayTest, InstrumentedBar) { #endif int b = 200; - float c = 300.3; + float c = 300.3f; double e = 400.4; foo.A(100); @@ -552,7 +552,7 @@ TEST(RecordReplayTest, InstrumentedBarRef) { InstrumentedFoo &foo = bar.GetInstrumentedFooRef(); int b = 200; - float c = 300.3; + float c = 300.3f; double e = 400.4; foo.A(100); @@ -587,7 +587,7 @@ TEST(RecordReplayTest, InstrumentedBarPtr) { InstrumentedFoo &foo = *(bar.GetInstrumentedFooPtr()); int b = 200; - float c = 300.3; + float c = 300.3f; double e = 400.4; foo.A(100); -- 2.34.1