From: Michael Wallner Date: Wed, 8 Feb 2017 19:06:44 +0000 (+0100) Subject: types: missing 'long double' in psi_t_size() and psi_t_alignment() X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=224b0dc90c463f236a978f41c66c2f2b565038b5;p=m6w6%2Fext-psi types: missing 'long double' in psi_t_size() and psi_t_alignment() --- diff --git a/src/token.h b/src/token.h index e660a0c..65d37a2 100644 --- a/src/token.h +++ b/src/token.h @@ -118,6 +118,10 @@ static inline size_t psi_t_alignment(token_t t) return ALIGNOF_VOID_P; case PSI_T_ENUM: return ALIGNOF_INT; +#ifdef HAVE_LONG_DOUBLE + case PSI_T_LONG_DOUBLE: + return ALIGNOF_LONG_DOUBLE; +#endif default: assert(0); } @@ -146,6 +150,10 @@ static inline size_t psi_t_size(token_t t) return SIZEOF_VOID_P; case PSI_T_ENUM: return SIZEOF_INT; +#ifdef HAVE_LONG_DOUBLE + case PSI_T_LONG_DOUBLE: + return SIZEOF_LONG_DOUBLE; +#endif default: assert(!t); }