mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
Fix memory_order_release in __zipos_seek (#975)
This commit is contained in:
parent
d95d61b1af
commit
a0f599ce12
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue