From 0db500addc7faafdb283a3a589ff187dfad2e12e Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Sun, 10 Feb 2019 18:01:52 +0000 Subject: [PATCH] Fix missing type encoding case for long double. This was triggered when upgrading ivars from the pre-2.0 ABI that used long double - their alignment could not be calculated correctly and we hit an assertion. Fixes: #82 --- type_encoding_cases.h | 1 + 1 file changed, 1 insertion(+) diff --git a/type_encoding_cases.h b/type_encoding_cases.h index 36ab516..419dc86 100644 --- a/type_encoding_cases.h +++ b/type_encoding_cases.h @@ -8,6 +8,7 @@ #ifndef APPLY_TYPE #error Define APPLY_TYPE(type, name, capitalizedName, encodingChar) before including this file #endif +APPLY_TYPE(long double, long double, LongDouble, 'D') APPLY_TYPE(double, double, Double, 'd') APPLY_TYPE(float, float, Float, 'f') APPLY_TYPE(signed char, char, Char, 'c')