Skip to content

Commit 23ff804

Browse files
committed
parenthesize
1 parent 1761283 commit 23ff804

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

external/gpl3/gcc/dist/libsanitizer/tsan/tsan_dense_alloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class DenseSlabAlloc {
162162
u64 cmp = atomic_load(&freelist_, memory_order_acquire);
163163
do {
164164
head->next = static_cast<IndexT>(cmp);
165-
xchg = head_idx | (cmp & kCounterMask) + kCounterInc;
165+
xchg = head_idx | ((cmp & kCounterMask) + kCounterInc);
166166
} while (!atomic_compare_exchange_weak(&freelist_, &cmp, xchg,
167167
memory_order_acq_rel));
168168
}

0 commit comments

Comments
 (0)