From 72c075307066c593c43cc153fbc30d3f6469e589 Mon Sep 17 00:00:00 2001 From: rfm Date: Mon, 28 Oct 2024 10:36:38 +0000 Subject: [PATCH] Re-order to avoid complier warning --- Source/NSKeyValueCoding+Caching.m | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/Source/NSKeyValueCoding+Caching.m b/Source/NSKeyValueCoding+Caching.m index 5a7ac8a70..07dc3ec39 100644 --- a/Source/NSKeyValueCoding+Caching.m +++ b/Source/NSKeyValueCoding+Caching.m @@ -169,17 +169,15 @@ static id _fnname(struct _KVCCacheSlot *slot, id obj) \ _getBoxedStruct(struct _KVCCacheSlot *slot, id obj) { NSInvocation *inv; - NSMethodSignature *sig; - size_t retSize; - const char *types = slot->types; - - sig = [NSMethodSignature signatureWithObjCTypes:types]; - inv = [NSInvocation invocationWithMethodSignature:sig]; - [inv setSelector:slot->selector]; - [inv invokeWithTarget:obj]; - retSize = [sig methodReturnLength]; - char ret[retSize]; - [inv getReturnValue:ret]; + const char *types = slot->types; + NSMethodSignature *sig = [NSMethodSignature signatureWithObjCTypes: types]; + size_t retSize = [sig methodReturnLength]; + char ret[retSize]; + + inv = [NSInvocation invocationWithMethodSignature: sig]; + [inv setSelector: slot->selector]; + [inv invokeWithTarget: obj]; + [inv getReturnValue: ret]; return [NSValue valueWithBytes:ret objCType:[sig methodReturnType]]; }