From b646c0a82a9f6439fa517a5771f7aaced11d7c6d Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Sat, 25 Feb 2017 07:53:36 +0000 Subject: [PATCH] Add static_cast to silence -Wc++11-narrowing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296249 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/DebugInfo/PDB/BinaryStreamTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/DebugInfo/PDB/BinaryStreamTest.cpp b/unittests/DebugInfo/PDB/BinaryStreamTest.cpp index ad1e6db6e07..e9e8ab8c973 100644 --- a/unittests/DebugInfo/PDB/BinaryStreamTest.cpp +++ b/unittests/DebugInfo/PDB/BinaryStreamTest.cpp @@ -452,7 +452,7 @@ TEST_F(BinaryStreamTest, StreamReaderObject) { std::vector Foos; Foos.push_back({-42, 42.42, 42}); - Foos.push_back({100, 3.1415, -89}); + Foos.push_back({100, 3.1415, static_cast(-89)}); const uint8_t *Bytes = reinterpret_cast(&Foos[0]); -- 2.50.1