From e475b4657527f8de436f11381b3d331bf7116d15 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov <0x7fffff@guattari.ru> Date: Mon, 15 Aug 2022 02:18:27 +0400 Subject: [atomic] Use signed type on Windows --- source/kit/atomic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/kit/atomic.h b/source/kit/atomic.h index 9100cd8..4b3e720 100644 --- a/source/kit/atomic.h +++ b/source/kit/atomic.h @@ -21,9 +21,9 @@ enum { memory_order_seq_cst }; # ifdef _WIN64 -# define KIT_ATOMIC_VAR uint64_t +# define KIT_ATOMIC_VAR int64_t # else -# define KIT_ATOMIC_VAR uint32_t +# define KIT_ATOMIC_VAR int32_t # endif # define KIT_ATOMIC(type_) volatile KIT_ATOMIC_VAR -- cgit v1.2.3