diff --git a/include/mx/trait.h b/include/mx/trait.h index 5f58949..767b9c5 100644 --- a/include/mx/trait.h +++ b/include/mx/trait.h @@ -113,7 +113,7 @@ * @brief Define the fat pointer structure. * @param base Base pointer type */ -#define fatptr_define(trait) fatptr_t(trait) { void *ptr; trait *traits; } +#define fatptr_define(trait) fatptr_t(trait) { void *ptr; const trait *traits; } /** * Fat pointer vtable for object #type for traits #trait