Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/jemalloc/include/jemalloc/internal fix const ca...
details: https://anonhg.NetBSD.org/src/rev/860eaf50fd95
branches: trunk
changeset: 997387:860eaf50fd95
user: christos <christos%NetBSD.org@localhost>
date: Tue Mar 05 22:37:39 2019 +0000
description:
fix const cast with custom "unconst"
diffstat:
external/bsd/jemalloc/include/jemalloc/internal/atomic_c11.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 728318908ee8 -r 860eaf50fd95 external/bsd/jemalloc/include/jemalloc/internal/atomic_c11.h
--- a/external/bsd/jemalloc/include/jemalloc/internal/atomic_c11.h Tue Mar 05 22:35:45 2019 +0000
+++ b/external/bsd/jemalloc/include/jemalloc/internal/atomic_c11.h Tue Mar 05 22:37:39 2019 +0000
@@ -27,7 +27,7 @@
* convenient for our purposes. This cast is a workaround. \
*/ \
atomic_##short_type##_t* a_nonconst = \
- (atomic_##short_type##_t*)a; \
+ (atomic_##short_type##_t*)(_Atomic void *)(_Atomic uintptr_t)(a); \
return atomic_load_explicit(a_nonconst, mo); \
} \
\
Home |
Main Index |
Thread Index |
Old Index