aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/atomic_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys/atomic_common.h')
-rw-r--r--sys/sys/atomic_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/atomic_common.h b/sys/sys/atomic_common.h
index a3548977b940..4c29d132c369 100644
--- a/sys/sys/atomic_common.h
+++ b/sys/sys/atomic_common.h
@@ -58,7 +58,7 @@
#define atomic_store_long(p, v) \
(*(volatile u_long *)(p) = (u_long)(v))
#define atomic_store_ptr(p, v) \
- (*(volatile uintptr_t *)(p) = (uintptr_t)(v))
+ (*(volatile __typeof(*p) *)(p) = (v))
#define atomic_store_8(p, v) \
(*(volatile uint8_t *)(p) = (uint8_t)(v))
#define atomic_store_16(p, v) \