Skip to content

Commit f8b1a2e

Browse files
authored
Merge pull request #62780 from buttaface/32-bit-cast
Get the compiler building again on 32-bit architectures
2 parents f588020 + 25a8838 commit f8b1a2e

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
@@ -3339,7 +3339,7 @@ class ErasureExpr final : public ImplicitConversionExpr,
33393339
/// this array will be empty
33403340
ArrayRef<ConversionPair> getArgumentConversions() const {
33413341
return {getTrailingObjects<ConversionPair>(),
3342-
Bits.ErasureExpr.NumArgumentConversions };
3342+
static_cast<size_t>(Bits.ErasureExpr.NumArgumentConversions) };
33433343
}
33443344

33453345
/// Retrieve the conversion expressions mapping requirements from any
@@ -3349,7 +3349,7 @@ class ErasureExpr final : public ImplicitConversionExpr,
33493349
/// this array will be empty
33503350
MutableArrayRef<ConversionPair> getArgumentConversions() {
33513351
return {getTrailingObjects<ConversionPair>(),
3352-
Bits.ErasureExpr.NumArgumentConversions };
3352+
static_cast<size_t>(Bits.ErasureExpr.NumArgumentConversions) };
33533353
}
33543354

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

0 commit comments

Comments
 (0)