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
main
David Chisnall 7 years ago
parent effdd15042
commit 0db500addc

@ -8,6 +8,7 @@
#ifndef APPLY_TYPE #ifndef APPLY_TYPE
#error Define APPLY_TYPE(type, name, capitalizedName, encodingChar) before including this file #error Define APPLY_TYPE(type, name, capitalizedName, encodingChar) before including this file
#endif #endif
APPLY_TYPE(long double, long double, LongDouble, 'D')
APPLY_TYPE(double, double, Double, 'd') APPLY_TYPE(double, double, Double, 'd')
APPLY_TYPE(float, float, Float, 'f') APPLY_TYPE(float, float, Float, 'f')
APPLY_TYPE(signed char, char, Char, 'c') APPLY_TYPE(signed char, char, Char, 'c')

Loading…
Cancel
Save