Skip to content

Commit d0add8a

Browse files
authored
Change ull to uint64_t in bit_vec structure
1 parent b03e803 commit d0add8a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

library/data_structures_[l,r)/seg_tree_uncommon/wavelet_bit_vec.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77
//! @time O(n + q)
88
//! @space O(n / 64)
99
struct bit_vec {
10-
using ull = uint64_t;
11-
vector<pair<ull, int>> b;
10+
vector<pair<uint64_t, int>> b;
1211
bit_vec(const vector<bool>& a): b(sz(a) / 64 + 1) {
1312
rep(i, 0, sz(a)) {
1413
auto& [x, y] = b[i >> 6];
15-
x |= ull(a[i]) << (i & 63), y += a[i];
14+
x |= uint64_t(a[i]) << (i & 63), y += a[i];
1615
}
1716
rep(i, 1, sz(b)) b[i].second += b[i - 1].second;
1817
}

0 commit comments

Comments
 (0)