Skip to content

Commit

Permalink
Fix memory_order_release in __zipos_seek (#975)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdomino authored Dec 1, 2023
1 parent d95d61b commit a0f599c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/runtime/zipos-seek.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ int64_t __zipos_seek(struct ZiposHandle *h, int64_t offset, unsigned whence) {
new_pos = einval();
}
if (LIKELY(atomic_compare_exchange_weak_explicit(
&h->pos, &pos, new_pos < 0 ? pos : new_pos, memory_order_acquire,
&h->pos, &pos, new_pos < 0 ? pos : new_pos, memory_order_release,
memory_order_relaxed))) {
break;
}
Expand Down

0 comments on commit a0f599c

Please sign in to comment.