Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
[lldb] Silence narrowing conversion warning with MSVC
Browse files Browse the repository at this point in the history
Fixes:
```
[13/270] Building CXX object tools\lldb\unittests\Core\CMakeFiles\LLDBCoreTests.dir\DumpDataExtractorTest.cpp.obj
C:\git\llvm-project\lldb\unittests\Core\DumpDataExtractorTest.cpp(140): warning C4305: 'argument': truncation from 'double' to 'const std::complex<float>::_Ty'
```
  • Loading branch information
aganea committed Jan 18, 2024
1 parent ded8aa6 commit cb67dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/unittests/DataFormatter/StringPrinterTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ TEST(StringPrinterTests, CxxASCII) {
EXPECT_EQ(fmt("🥑"), QUOTE("🥑"));

// Octal (\nnn), hex (\xnn), extended octal (\unnnn or \Unnnnnnnn).
EXPECT_EQ(fmt("\uD55C"), QUOTE("\uD55C"));
EXPECT_EQ(fmt(L"\uD55C"), QUOTE(L"\uD55C"));
EXPECT_EQ(fmt("\U00010348"), QUOTE("\U00010348"));

EXPECT_EQ(fmt("\376"), QUOTE(R"(\xfe)")); // \376 is 254 in decimal.
Expand Down

0 comments on commit cb67dc1

Please sign in to comment.