-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Closed
Description
LLVM fails to build on 32-bit macOS with error:
error: no matching function for call to 'min'
std::min(HashReadEnd - CurrHashReadPosition,
^~~~~~~~
note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('int' vs. 'long')
min(const _Tp& __a, const _Tp& __b)
The issues seems to be the use of ssize_t
at
static_cast<ssize_t>(CodeSignature.BlockSize))); |
If ssize_t
is replaced with std::ptrdiff_t
, the build works on both 32-bit and 64-bit systems.