diff --git a/libc/runtime/zipos-seek.c b/libc/runtime/zipos-seek.c index 2e0c705cb5e..ce427f89f6e 100644 --- a/libc/runtime/zipos-seek.c +++ b/libc/runtime/zipos-seek.c @@ -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; }