We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c0ea564 + 5f3a6af commit 3b50749Copy full SHA for 3b50749
include/swift/AST/IndexSubset.h
@@ -93,7 +93,7 @@ class IndexSubset : public llvm::FoldingSetNode {
93
for (auto i : indices.set_bits()) {
94
unsigned bitWordIndex, offset;
95
std::tie(bitWordIndex, offset) = getBitWordIndexAndOffset(i);
96
- getBitWord(bitWordIndex) |= (1 << offset);
+ getBitWord(bitWordIndex) |= (1ull << offset);
97
}
98
99
@@ -181,7 +181,7 @@ class IndexSubset : public llvm::FoldingSetNode {
181
bool contains(unsigned index) const {
182
183
std::tie(bitWordIndex, offset) = getBitWordIndexAndOffset(index);
184
- return getBitWord(bitWordIndex) & (1 << offset);
+ return getBitWord(bitWordIndex) & (1ull << offset);
185
186
187
bool isEmpty() const {
0 commit comments