Skip to content

Commit 3b50749

Browse files
authored
Merge pull request #28247 from gmittert/ShiftingBlame
2 parents c0ea564 + 5f3a6af commit 3b50749

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/AST/IndexSubset.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class IndexSubset : public llvm::FoldingSetNode {
9393
for (auto i : indices.set_bits()) {
9494
unsigned bitWordIndex, offset;
9595
std::tie(bitWordIndex, offset) = getBitWordIndexAndOffset(i);
96-
getBitWord(bitWordIndex) |= (1 << offset);
96+
getBitWord(bitWordIndex) |= (1ull << offset);
9797
}
9898
}
9999

@@ -181,7 +181,7 @@ class IndexSubset : public llvm::FoldingSetNode {
181181
bool contains(unsigned index) const {
182182
unsigned bitWordIndex, offset;
183183
std::tie(bitWordIndex, offset) = getBitWordIndexAndOffset(index);
184-
return getBitWord(bitWordIndex) & (1 << offset);
184+
return getBitWord(bitWordIndex) & (1ull << offset);
185185
}
186186

187187
bool isEmpty() const {

0 commit comments

Comments
 (0)