Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix static assert violation in GC_calloc_prepare_explicitly_typed on …
…CHERI (fix of commit 433e2dd) Issue #627 (bdwgc). * include/gc/gc_typed.h [!GC_BUILD] (GC_calloc_typed_descr_s): First define it as a macro (referring to GC_calloc_typed_descr_opaque_s). * include/gc/gc_typed.h (GC_calloc_typed_descr_s): Undefine (after definition of struct GC_calloc_typed_descr_s. * typd_mlc.c (GC_calloc_prepare_explicitly_typed): Compare sizeof GC_calloc_typed_descr_s to that of GC_calloc_typed_descr_opaque_s in static assert (instead of computing the struct size using GC_CALLOC_TYPED_DESCR_PTRS and GC_CALLOC_TYPED_DESCR_WORDS).
- Loading branch information