summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2018-09-11 12:45:22 +0000
committerRaphael Isemann <teemperor@gmail.com>2018-09-11 12:45:22 +0000
commitb658f1df352c9e4a02699b729c13cca883b4f31b (patch)
tree59b0af7898dfd7b5236923d719c74a0eef016e4a
parent5f5d3fa098eac9505cfb37898a7ac31177e04917 (diff)
downloadbcm5719-llvm-b658f1df352c9e4a02699b729c13cca883b4f31b.tar.gz
bcm5719-llvm-b658f1df352c9e4a02699b729c13cca883b4f31b.zip
[NFC] Fix compiler warning in TestArmv7Disassembly.cpp
The warning is comparison of integers of different signs: 'const int' and 'const unsigned long' and triggered by EXPECT_EQ (num_of_instructions, inst_list.GetSize()); as num_of_instructions is an int in this comparison (and the RHS is size_t). llvm-svn: 341931
-rw-r--r--lldb/unittests/Disassembler/TestArmv7Disassembly.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/unittests/Disassembler/TestArmv7Disassembly.cpp b/lldb/unittests/Disassembler/TestArmv7Disassembly.cpp
index 8767a39292a..005aae51214 100644
--- a/lldb/unittests/Disassembler/TestArmv7Disassembly.cpp
+++ b/lldb/unittests/Disassembler/TestArmv7Disassembly.cpp
@@ -48,7 +48,7 @@ void TestArmv7Disassembly::TearDownTestCase() {
TEST_F(TestArmv7Disassembly, TestCortexFPDisass) {
ArchSpec arch("armv7em--");
- const int num_of_instructions = 3;
+ const unsigned num_of_instructions = 3;
uint8_t data[] = {
0x00, 0xee, 0x10, 0x2a, // 0xee002a10 : vmov s0, r2
0xb8, 0xee, 0xc0, 0x0b, // 0xeeb80bc0 : vcvt.f64.s32 d0, s0
OpenPOWER on IntegriCloud