forked from OSchip/llvm-project
Add static_cast to silence -Wc++11-narrowing.
llvm-svn: 296249
This commit is contained in:
parent
dcfe34e667
commit
6249d4d337
|
@ -452,7 +452,7 @@ TEST_F(BinaryStreamTest, StreamReaderObject) {
|
||||||
|
|
||||||
std::vector<Foo> Foos;
|
std::vector<Foo> Foos;
|
||||||
Foos.push_back({-42, 42.42, 42});
|
Foos.push_back({-42, 42.42, 42});
|
||||||
Foos.push_back({100, 3.1415, -89});
|
Foos.push_back({100, 3.1415, static_cast<char>(-89)});
|
||||||
|
|
||||||
const uint8_t *Bytes = reinterpret_cast<const uint8_t *>(&Foos[0]);
|
const uint8_t *Bytes = reinterpret_cast<const uint8_t *>(&Foos[0]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue