Skip to content

Commit b3b6f7c

Browse files
committed
[MachO] using std::size_t to fix build errors on arm-ubuntu
Fix build failure introduced by commit 6a3604e Signed-off-by: Peter Rong <PeterRong@meta.com>
1 parent 3210bce commit b3b6f7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lld/MachO/Driver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,12 +1042,12 @@ static bool shouldAdhocSignByDefault(Architecture arch, PlatformType platform) {
10421042
platform == PLATFORM_XROS_SIMULATOR;
10431043
}
10441044

1045-
template <unsigned long N>
1045+
template <std::size_t N>
10461046
using MinVersions = std::array<std::pair<PlatformType, VersionTuple>, N>;
10471047

10481048
/// Returns true if the platform is greater than the min version.
10491049
/// Returns false if the platform does not exist.
1050-
template <unsigned long N>
1050+
template <std::size_t N>
10511051
static bool greaterEqMinVersion(const MinVersions<N> &minVersions,
10521052
bool ignoreSimulator) {
10531053
PlatformType platform = config->platformInfo.target.Platform;

0 commit comments

Comments
 (0)