From 6cedbc746c5a80b1b896c423004985422f5082c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C5=8Dshin?= Date: Wed, 13 Dec 2023 03:03:25 -0500 Subject: [PATCH] Fix type of refs --- libc/runtime/zipos-open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/runtime/zipos-open.c b/libc/runtime/zipos-open.c index 486442266..629a558ce 100644 --- a/libc/runtime/zipos-open.c +++ b/libc/runtime/zipos-open.c @@ -83,7 +83,7 @@ static void *__zipos_mmap_space(size_t mapsize) { } struct ZiposHandle *__zipos_keep(struct ZiposHandle *h) { - int refs = atomic_fetch_add_explicit(&h->refs, 1, memory_order_relaxed); + size_t refs = atomic_fetch_add_explicit(&h->refs, 1, memory_order_relaxed); unassert(!VERY_UNLIKELY(refs > MAX_REFS)); return h; }