Author: teemperor Date: Tue Sep 11 05:45:22 2018 New Revision: 341931 URL: http://llvm.org/viewvc/llvm-project?rev=341931&view=rev Log: [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). Modified: lldb/trunk/unittests/Disassembler/TestArmv7Disassembly.cpp Modified: lldb/trunk/unittests/Disassembler/TestArmv7Disassembly.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/Disassembler/TestArmv7Disassembly.cpp?rev=341931&r1=341930&r2=341931&view=diff ============================================================================== --- lldb/trunk/unittests/Disassembler/TestArmv7Disassembly.cpp (original) +++ lldb/trunk/unittests/Disassembler/TestArmv7Disassembly.cpp Tue Sep 11 05:45:22 2018 @@ -48,7 +48,7 @@ void TestArmv7Disassembly::TearDownTestC 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 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits