summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2018-08-23 07:12:05 +0000
committerVitaly Buka <vitalybuka@google.com>2018-08-23 07:12:05 +0000
commitdaab25b8fd793324e800ea25c1eb936335dcea88 (patch)
treeb3acfeb14b021f861827b2673391a28cc7fbcc10 /llvm
parent6579c812a4730306d7e2183100baf8b60a7bf3f5 (diff)
downloadbcm5719-llvm-daab25b8fd793324e800ea25c1eb936335dcea88.tar.gz
bcm5719-llvm-daab25b8fd793324e800ea25c1eb936335dcea88.zip
Fix comparison of char and int64 in TestWriteFixNegativeInt
It was broken on clang-ppc64le-linux-lnt bot. llvm-svn: 340517
Diffstat (limited to 'llvm')
-rw-r--r--llvm/unittests/BinaryFormat/MsgPackWriterTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/BinaryFormat/MsgPackWriterTest.cpp b/llvm/unittests/BinaryFormat/MsgPackWriterTest.cpp
index 288ea6d9fa2..ecca3eee773 100644
--- a/llvm/unittests/BinaryFormat/MsgPackWriterTest.cpp
+++ b/llvm/unittests/BinaryFormat/MsgPackWriterTest.cpp
@@ -129,7 +129,7 @@ TEST_F(MsgPackWriter, TestWriteFixNegativeInt) {
MPWriter.write(i);
std::string Output = OStream.str();
EXPECT_EQ(Output.size(), 1u);
- EXPECT_EQ(Output.data()[0], static_cast<int8_t>(i));
+ EXPECT_EQ(static_cast<int8_t>(Output.data()[0]), static_cast<int8_t>(i));
}
}
OpenPOWER on IntegriCloud