types: missing 'long double' in psi_t_size() and psi_t_alignment()
authorMichael Wallner <mike@php.net>
Wed, 8 Feb 2017 19:06:44 +0000 (20:06 +0100)
committerMichael Wallner <mike@php.net>
Wed, 8 Feb 2017 19:06:44 +0000 (20:06 +0100)
src/token.h

index e660a0cbb416af87cfaeef1452635a4a9eb1c5ce..65d37a2e635d6f8fdf69e7970dcb29450310917a 100644 (file)
@@ -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);
        }