Fix type of refs

This commit is contained in:
Jōshin 2023-12-13 03:03:25 -05:00
parent 2fc507c98f
commit 6cedbc746c
No known key found for this signature in database

View file

@ -83,7 +83,7 @@ static void *__zipos_mmap_space(size_t mapsize) {
} }
struct ZiposHandle *__zipos_keep(struct ZiposHandle *h) { 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)); unassert(!VERY_UNLIKELY(refs > MAX_REFS));
return h; return h;
} }