[MachO] using std::size_t to fix build errors on arm-ubuntu

Fix build failure introduced by commit 6a3604ef8592edf39fedd6af8100aefafd6d931d

Signed-off-by: Peter Rong <PeterRong@meta.com>
This commit is contained in:
Peter Rong 2024-08-07 14:28:03 -07:00
parent 3210bce90f
commit b3b6f7cb0b

View File

@ -1042,12 +1042,12 @@ static bool shouldAdhocSignByDefault(Architecture arch, PlatformType platform) {
platform == PLATFORM_XROS_SIMULATOR;
}
template <unsigned long N>
template <std::size_t N>
using MinVersions = std::array<std::pair<PlatformType, VersionTuple>, N>;
/// Returns true if the platform is greater than the min version.
/// Returns false if the platform does not exist.
template <unsigned long N>
template <std::size_t N>
static bool greaterEqMinVersion(const MinVersions<N> &minVersions,
bool ignoreSimulator) {
PlatformType platform = config->platformInfo.target.Platform;