summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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