From 8583fc7f61fe981e55b1eca8d9cc20253fef3088 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Sun, 27 Dec 2015 20:13:49 +0100 Subject: [PATCH] =?UTF-8?q?Explicitly=20make=20char=20signed=20in=20the=20?= =?UTF-8?q?property=20introspection=20test.=20=20The=20C=20spec=20allows?= =?UTF-8?q?=20char=20to=20be=20either=20signed=20or=20unsigned.=20=20If=20?= =?UTF-8?q?it=E2=80=99s=20unsigned=20(as=20it=20is=20on=20ARM),=20then=20t?= =?UTF-8?q?he=20test=20will=20fail=20with=20the=20wrong=20encoding.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Test/PropertyIntrospectionTest2_arc.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Test/PropertyIntrospectionTest2_arc.m b/Test/PropertyIntrospectionTest2_arc.m index a49e1c1..3ec266f 100644 --- a/Test/PropertyIntrospectionTest2_arc.m +++ b/Test/PropertyIntrospectionTest2_arc.m @@ -7,7 +7,7 @@ #pragma GCC diagnostic ignored "-Wobjc-property-no-attribute" enum FooManChu { FOO, MAN, CHU }; -struct YorkshireTeaStruct { int pot; char lady; }; +struct YorkshireTeaStruct { int pot; signed char lady; }; typedef struct YorkshireTeaStruct YorkshireTeaStructType; union MoneyUnion { float alone; double down; }; @@ -22,7 +22,7 @@ __attribute__((objc_root_class)) { @public Class isa; - char charDefault; + signed char charDefault; double doubleDefault; enum FooManChu enumDefault; float floatDefault; @@ -54,7 +54,7 @@ __attribute__((objc_root_class)) __weak id idReadonlyWeakNonatomic; id _idOther; } -@property char charDefault; +@property signed char charDefault; @property double doubleDefault; @property enum FooManChu enumDefault; @property float floatDefault; @@ -133,7 +133,7 @@ __attribute__((objc_root_class)) @end @protocol ProtocolTest -@property char charDefault; +@property signed char charDefault; @property double doubleDefault; @property enum FooManChu enumDefault; @property float floatDefault; @@ -173,7 +173,7 @@ __attribute__((objc_root_class)) @interface PropertyProtocolTest { Class isa; - char charDefault; + signed char charDefault; double doubleDefault; enum FooManChu enumDefault; float floatDefault;