Skip to content

Commit a034a20

Browse files
authored
Update libc/src/__support/fixedstack.h
1 parent 5e1851b commit a034a20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/fixedstack.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ template <typename T, uint32_t CAPACITY> class alignas(16) FixedStack {
3434

3535
// Get the 20-bit index into the underlying array from the head.
3636
static constexpr uint32_t get_node(uint64_t head) {
37-
return static_cast<uint32_t>(head & 0xffff);
37+
return static_cast<uint32_t>(head & 0xfffff);
3838
}
3939

4040
// Increment the old ABA tag and merge it into the new index.

0 commit comments

Comments
 (0)