Add static_cast to silence -Wc++11-narrowing.

llvm-svn: 296249
This commit is contained in:
Daniel Jasper 2017-02-25 07:53:36 +00:00
parent dcfe34e667
commit 6249d4d337
1 changed files with 1 additions and 1 deletions

View File

@ -452,7 +452,7 @@ TEST_F(BinaryStreamTest, StreamReaderObject) {
std::vector<Foo> Foos;
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]);