@@ -51,10 +51,10 @@ void __bad_atomic_size(void);
unsigned long x_; \
CLANG_DISABLE_WARN_GCC_COMPAT_START \
switch ( sizeof(*(p)) ) { \
- case 1: x_ = read_u8_atomic((uint8_t *)(p)); break; \
- case 2: x_ = read_u16_atomic((uint16_t *)(p)); break; \
- case 4: x_ = read_u32_atomic((uint32_t *)(p)); break; \
- case 8: x_ = read_u64_atomic((uint64_t *)(p)); break; \
+ case 1: x_ = read_u8_atomic((const uint8_t *)(p)); break; \
+ case 2: x_ = read_u16_atomic((const uint16_t *)(p)); break; \
+ case 4: x_ = read_u32_atomic((const uint32_t *)(p)); break; \
+ case 8: x_ = read_u64_atomic((const uint64_t *)(p)); break; \
default: x_ = 0; __bad_atomic_size(); break; \
} \
CLANG_DISABLE_WARN_GCC_COMPAT_END \