Silence 'warning C4305: 'initializing': truncation from 'double' to 'float'' with MSVC 19.16.27021.1 (VS2017 15.9.12)

llvm-svn: 362437
This commit is contained in:
Alexandre Ganea 2019-06-03 18:46:30 +00:00
parent 8dbeb9256c
commit 18ca8a2233
1 changed files with 6 additions and 6 deletions

View File

@ -31,7 +31,7 @@ struct Pod {
bool a = true; bool a = true;
bool b = false; bool b = false;
char c = 'a'; char c = 'a';
float d = 1.1; float d = 1.1f;
int e = 2; int e = 2;
long long f = 3; long long f = 3;
long g = 4; long g = 4;
@ -443,7 +443,7 @@ TEST(RecordReplayTest, InstrumentedFoo) {
{ {
int b = 200; int b = 200;
float c = 300.3; float c = 300.3f;
double e = 400.4; double e = 400.4;
InstrumentedFoo foo(0); InstrumentedFoo foo(0);
@ -471,7 +471,7 @@ TEST(RecordReplayTest, InstrumentedFooSameThis) {
g_serializer.emplace(os); g_serializer.emplace(os);
int b = 200; int b = 200;
float c = 300.3; float c = 300.3f;
double e = 400.4; double e = 400.4;
InstrumentedFoo *foo = new InstrumentedFoo(0); InstrumentedFoo *foo = new InstrumentedFoo(0);
@ -517,7 +517,7 @@ TEST(RecordReplayTest, InstrumentedBar) {
#endif #endif
int b = 200; int b = 200;
float c = 300.3; float c = 300.3f;
double e = 400.4; double e = 400.4;
foo.A(100); foo.A(100);
@ -552,7 +552,7 @@ TEST(RecordReplayTest, InstrumentedBarRef) {
InstrumentedFoo &foo = bar.GetInstrumentedFooRef(); InstrumentedFoo &foo = bar.GetInstrumentedFooRef();
int b = 200; int b = 200;
float c = 300.3; float c = 300.3f;
double e = 400.4; double e = 400.4;
foo.A(100); foo.A(100);
@ -587,7 +587,7 @@ TEST(RecordReplayTest, InstrumentedBarPtr) {
InstrumentedFoo &foo = *(bar.GetInstrumentedFooPtr()); InstrumentedFoo &foo = *(bar.GetInstrumentedFooPtr());
int b = 200; int b = 200;
float c = 300.3; float c = 300.3f;
double e = 400.4; double e = 400.4;
foo.A(100); foo.A(100);