summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitya Selivanov <0x7fffff@guattari.ru>2022-08-15 02:18:27 +0400
committerMitya Selivanov <0x7fffff@guattari.ru>2022-08-15 02:18:27 +0400
commite475b4657527f8de436f11381b3d331bf7116d15 (patch)
tree8d80974812539369b1612702d2ae6588a89b0146
parent692f78ed03069a573cd893e191cbbf933289ddc7 (diff)
downloadkit-e475b4657527f8de436f11381b3d331bf7116d15.zip
[atomic] Use signed type on Windows
-rw-r--r--source/kit/atomic.h4
1 files 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