Skip to content

Commit a8cc312

Browse files
committed
[Basic] Fix return type of FixedBitSet::chunkMask()
Fix a warning in msvc compiler: warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
1 parent da65626 commit a8cc312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Basic/FixedBitSet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class FixedBitSet {
7878
static size_t chunkIndex(ValueType i) {
7979
return size_t(i) / chunkSize;
8080
}
81-
static size_t chunkMask(ValueType i) {
81+
static ChunkType chunkMask(ValueType i) {
8282
return ChunkType(1) << (size_t(i) % chunkSize);
8383
}
8484

0 commit comments

Comments
 (0)