From 224b0dc90c463f236a978f41c66c2f2b565038b5 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 8 Feb 2017 20:06:44 +0100 Subject: [PATCH 1/1] types: missing 'long double' in psi_t_size() and psi_t_alignment() --- src/token.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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); } -- 2.30.2