Skip to content

Commit 25a8838

Browse files
committed
Get the compiler building again on 32-bit architectures
1 parent 60952b8 commit 25a8838

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/AST/Expr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3308,7 +3308,7 @@ class ErasureExpr final : public ImplicitConversionExpr,
33083308
/// this array will be empty
33093309
ArrayRef<ConversionPair> getArgumentConversions() const {
33103310
return {getTrailingObjects<ConversionPair>(),
3311-
Bits.ErasureExpr.NumArgumentConversions };
3311+
static_cast<size_t>(Bits.ErasureExpr.NumArgumentConversions) };
33123312
}
33133313

33143314
/// Retrieve the conversion expressions mapping requirements from any
@@ -3318,7 +3318,7 @@ class ErasureExpr final : public ImplicitConversionExpr,
33183318
/// this array will be empty
33193319
MutableArrayRef<ConversionPair> getArgumentConversions() {
33203320
return {getTrailingObjects<ConversionPair>(),
3321-
Bits.ErasureExpr.NumArgumentConversions };
3321+
static_cast<size_t>(Bits.ErasureExpr.NumArgumentConversions) };
33223322
}
33233323

33243324
void setArgumentConversion(unsigned i, const ConversionPair &p) {

0 commit comments

Comments
 (0)