Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Aug 2, 2024
1 parent c21ff4d commit 01cec2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion torchrl/csrc/segment_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ class SegmentTree {
public:
SegmentTree(int64_t size, const T& identity_element)
: size_(size), identity_element_(identity_element) {
for (capacity_ = 1; capacity_ <= size; capacity_ <<= 1);
for (capacity_ = 1; capacity_ <= size; capacity_ <<= 1)
;
values_.assign(2 * capacity_, identity_element_);
}

Expand Down

0 comments on commit 01cec2a

Please sign in to comment.