We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3321c2d commit ba93eccCopy full SHA for ba93ecc
lld/MachO/SyntheticSections.cpp
@@ -2079,12 +2079,12 @@ void ObjCMethListSection::finalize() {
2079
void ObjCMethListSection::writeTo(uint8_t *bufStart) const {
2080
uint8_t *buf = bufStart;
2081
for (const ConcatInputSection *isec : inputs) {
2082
- assert(buf - bufStart == long(isec->outSecOff) &&
+ assert(buf - bufStart == std::ptrdiff_t(isec->outSecOff) &&
2083
"Writing at unexpected offset");
2084
uint32_t writtenSize = writeRelativeMethodList(isec, buf);
2085
buf += writtenSize;
2086
}
2087
- assert(buf - bufStart == sectionSize &&
+ assert(buf - bufStart == std::ptrdiff_t(sectionSize) &&
2088
"Written size does not match expected section size");
2089
2090
0 commit comments