From a0f599ce120fa9dbe5f2c68f4553161a84599904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C5=8Dshin?= Date: Fri, 1 Dec 2023 05:28:15 -0500 Subject: [PATCH] Fix memory_order_release in __zipos_seek (#975) --- libc/runtime/zipos-seek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }