Skip to content

Commit d950157

Browse files
committed
[lldb] Silence warning when building with latest MSVC
Fixes: ``` C:\git\llvm-project\lldb\unittests\Core\DumpDataExtractorTest.cpp(140): warning C4305: 'argument': truncation from 'double' to 'const std::complex<float>::_Ty' ```
1 parent c21f48e commit d950157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/unittests/Core/DumpDataExtractorTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ TEST_F(DumpDataExtractorTest, Formats) {
137137
TestDump('?', lldb::eFormatChar, "'?'");
138138
TestDump('\x1A', lldb::eFormatCharPrintable, ".");
139139
TestDump('#', lldb::eFormatCharPrintable, "#");
140-
TestDump(std::complex<float>(1.2, 3.4), lldb::eFormatComplex, "1.2 + 3.4i");
140+
TestDump(std::complex<float>(1.2f, 3.4f), lldb::eFormatComplex, "1.2 + 3.4i");
141141
TestDump(std::complex<double>(4.5, 6.7), lldb::eFormatComplex, "4.5 + 6.7i");
142142

143143
// long double is not tested here because for some platforms we treat it as 10

0 commit comments

Comments
 (0)