Fix typo in comment: 'unit64_t' to 'uint64_t' (#162869)

Corrects a typo in comments within XCOFFObjectFile.cpp, changing
'unit64_t' to the correct type 'uint64_t' for clarity.
This commit is contained in:
小钟
2025-10-11 00:50:33 +08:00
committed by GitHub
parent f071cacc6b
commit 10021c737a

View File

@@ -379,7 +379,7 @@ Expected<StringRef> XCOFFObjectFile::getSectionName(DataRefImpl Sec) const {
}
uint64_t XCOFFObjectFile::getSectionAddress(DataRefImpl Sec) const {
// Avoid ternary due to failure to convert the ubig32_t value to a unit64_t
// Avoid ternary due to failure to convert the ubig32_t value to a uint64_t
// with MSVC.
if (is64Bit())
return toSection64(Sec)->VirtualAddress;
@@ -397,7 +397,7 @@ uint64_t XCOFFObjectFile::getSectionIndex(DataRefImpl Sec) const {
}
uint64_t XCOFFObjectFile::getSectionSize(DataRefImpl Sec) const {
// Avoid ternary due to failure to convert the ubig32_t value to a unit64_t
// Avoid ternary due to failure to convert the ubig32_t value to a uint64_t
// with MSVC.
if (is64Bit())
return toSection64(Sec)->SectionSize;