Skip to content

Commit

Permalink
ARC: fixed compile error when using macro in ARC
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoquesada committed Jan 17, 2012
1 parent 863e0b1 commit 2f965ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cocos2d/Support/CCArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@

#define CCARRAY_FOREACH(__array__, __object__) \
if (__array__ && __array__->data->num > 0) \
for(CC_ARC_UNSAFE_RETAINED id *__arr__ = __array__->data->arr, *end = __array__->data->arr + __array__->data->num-1; \
__arr__ <= end && ((__object__ = *__arr__) != nil || true); \
for(const CC_ARC_UNSAFE_RETAINED id *__arr__ = __array__->data->arr, *end = __array__->data->arr + __array__->data->num-1; \
__arr__ <= end && ((__object__ = *__arr__) != nil || true); \
__arr__++)

@interface CCArray : NSObject <NSFastEnumeration, NSCoding, NSCopying>
Expand Down

1 comment on commit 2f965ff

@wefiends
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey guys. Any chance to get this fix merged into 1.x as well?

Please sign in to comment.