Update fdbserver/SkipList.cpp

Co-Authored-By: A.J. Beamon <ajbeamon@users.noreply.github.com>
This commit is contained in:
Andrew Noyes 2019-12-05 15:03:45 -08:00
parent 4263a17188
commit 46b675a719
1 changed files with 1 additions and 1 deletions

View File

@ -1052,7 +1052,7 @@ class MiniConflictSet : NonCopyable {
}
wordType highBits(int b){ // bits (b&bucketMask) and higher are 1
#pragma warning(disable: 4146)
return -(wordType(1) << (b & bucketMask));
return -bitMask(b);
#pragma warning(default: 4146)
}
wordType lowBits(int b) { // bits lower than (b&bucketMask) are 1