Skip to content

Commit

Permalink
SERVER-6572 fix Windows warning
Browse files Browse the repository at this point in the history
Explicitly make the target of the bit shift 'long long' to avoid
MSVC warning: "src\mongo\db\record.cpp(242) : warning C4334:
'<<' : result of 32-bit shift implicitly converted to 64 bits
(was 64-bit shift intended?)".
  • Loading branch information
Tad Marshall committed Aug 9, 2012
1 parent f69d15b commit 4e7a01c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongo/db/record.cpp
Expand Up @@ -239,7 +239,7 @@ namespace mongo {
}

inline size_t pageBitOf(size_t ptr) {
return 1 << ((ptr & pageSelectorMask) >> pageSelectorShift);
return 1LL << ((ptr & pageSelectorMask) >> pageSelectorShift);
}

inline size_t superpageOf(size_t ptr) {
Expand Down

0 comments on commit 4e7a01c

Please sign in to comment.