diff --git a/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp b/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp index 50eafee145e3..59d1e099b9c0 100644 --- a/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp +++ b/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp @@ -217,7 +217,7 @@ TEST(ObjectFileYAML, oneSection) { EXPECT_EQ((uint32_t)(sect.attributes), (uint32_t)(llvm::MachO::S_ATTR_PURE_INSTRUCTIONS)); EXPECT_EQ(sect.alignment, 1U); - EXPECT_EQ(sect.address, 0x12345678ULL); + EXPECT_EQ((uint64_t)sect.address, 0x12345678ULL); EXPECT_EQ(sect.content.size(), 2UL); EXPECT_EQ((int)(sect.content[0]), 0x90); EXPECT_EQ((int)(sect.content[1]), 0x90);