Skip to content

Commit

Permalink
Fix issue about 64-bit array length
Browse files Browse the repository at this point in the history
  • Loading branch information
mfbalin committed Nov 20, 2023
1 parent ba2ca4b commit 7e276c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/array/cuda/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ int _NumberOfBits(const T& range) {
}

int bits = 1;
while (bits < static_cast<int>(sizeof(T) * 8) && (1 << bits) < range) {
while (bits < static_cast<int>(sizeof(T) * 8) && (1ll << bits) < range) {
++bits;
}

Expand Down

0 comments on commit 7e276c3

Please sign in to comment.