Module Name: src Committed By: christos Date: Tue Mar 5 22:37:39 UTC 2019
Modified Files: src/external/bsd/jemalloc/include/jemalloc/internal: atomic_c11.h Log Message: fix const cast with custom "unconst" To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 \ src/external/bsd/jemalloc/include/jemalloc/internal/atomic_c11.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/jemalloc/include/jemalloc/internal/atomic_c11.h diff -u src/external/bsd/jemalloc/include/jemalloc/internal/atomic_c11.h:1.1 src/external/bsd/jemalloc/include/jemalloc/internal/atomic_c11.h:1.2 --- src/external/bsd/jemalloc/include/jemalloc/internal/atomic_c11.h:1.1 Mon Mar 4 12:25:09 2019 +++ src/external/bsd/jemalloc/include/jemalloc/internal/atomic_c11.h Tue Mar 5 17:37:39 2019 @@ -27,7 +27,7 @@ atomic_load_##short_type(const atomic_## * 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); \ } \ \