llvm-project/llvm/lib/ObjCopy/MachO
Joshua Root 146f486ba3 [ObjCopy] Fix type mismatch in writeCodeSignatureData()
The result of pointer subtraction is of type ptrdiff_t, which is not necessarily the same underlying type as ssize_t. This can lead to a compilation error since std::min requires both parameters to be the same type.

Fixes: https://github.com/llvm/llvm-project/issues/54846

Reviewed By: alexander-shaposhnikov, drodriguez, jhenderson

Differential Revision: https://reviews.llvm.org/D128117
2022-06-24 09:14:47 -07:00
..
MachOLayoutBuilder.cpp
MachOLayoutBuilder.h [ObjCopy][NFC] Add missing const in MachOLayoutBuilder.h 2022-04-10 01:29:24 +00:00
MachOObjcopy.cpp [llvm] Don't use Optional::getValue (NFC) 2022-06-20 22:45:45 -07:00
MachOObject.cpp
MachOObject.h
MachOReader.cpp
MachOReader.h
MachOWriter.cpp [ObjCopy] Fix type mismatch in writeCodeSignatureData() 2022-06-24 09:14:47 -07:00
MachOWriter.h