From 66eb6d8f68bdd8ee9eeca87e37f34902632dd37b Mon Sep 17 00:00:00 2001 From: "H. Utku Maden" Date: Sun, 24 Mar 2024 12:37:16 +0300 Subject: [PATCH] Add const to trait vtable. --- include/mx/trait.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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