From a8cc312e504ee4d372bc7370ee63bcf7f24c1c36 Mon Sep 17 00:00:00 2001 From: Rintaro Ishizaki Date: Thu, 30 May 2024 13:36:29 -0700 Subject: [PATCH] [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?) --- include/swift/Basic/FixedBitSet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/swift/Basic/FixedBitSet.h b/include/swift/Basic/FixedBitSet.h index fd96f016b16be..d3d820b86b8ff 100644 --- a/include/swift/Basic/FixedBitSet.h +++ b/include/swift/Basic/FixedBitSet.h @@ -78,7 +78,7 @@ class FixedBitSet { static size_t chunkIndex(ValueType i) { return size_t(i) / chunkSize; } - static size_t chunkMask(ValueType i) { + static ChunkType chunkMask(ValueType i) { return ChunkType(1) << (size_t(i) % chunkSize); }