mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
7197906: BlockOffsetArray::power_to_cards_back() needs to handle > 32 bit shifts
Reviewed-by: brutisso, johnc, ysr
This commit is contained in:
parent
c188598ddd
commit
18582cee62
3 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue