mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 15:38:22 +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();
|
new_pos = einval();
|
||||||
}
|
}
|
||||||
if (LIKELY(atomic_compare_exchange_weak_explicit(
|
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))) {
|
memory_order_relaxed))) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue