7197906: BlockOffsetArray::power_to_cards_back() needs to handle > 32 bit shifts

Reviewed-by: brutisso, johnc, ysr
This commit is contained in:
Hal Mo 2012-09-13 21:20:26 +02:00 committed by Bengt Rutisson
parent c188598ddd
commit 18582cee62
3 changed files with 3 additions and 3 deletions

View file

@ -285,7 +285,7 @@ class BlockOffsetArray: public BlockOffsetTable {
};
static size_t power_to_cards_back(uint i) {
return (size_t)(1 << (LogBase * i));
return (size_t)1 << (LogBase * i);
}
static size_t power_to_words_back(uint i) {
return power_to_cards_back(i) * N_words;