Index: src/OFConstString.m ================================================================== --- src/OFConstString.m +++ src/OFConstString.m @@ -136,13 +136,13 @@ - autorelease { return self; } -- (size_t)retainCount +- (uint32_t)retainCount { - return SIZE_MAX; + return UINT32_MAX; } - (void)release { } Index: src/OFFile.m ================================================================== --- src/OFFile.m +++ src/OFFile.m @@ -257,17 +257,17 @@ - (void)release { } -- (size_t)retainCount +- (uint32_t)retainCount { - return SIZE_MAX; + return UINT32_MAX; } - (void)dealloc { @throw [OFNotImplementedException newWithClass: isa selector: _cmd]; [super dealloc]; /* Get rid of stupid warning */ } @end Index: src/OFObject.h ================================================================== --- src/OFObject.h +++ src/OFObject.h @@ -264,11 +264,11 @@ - retain; /** * \return The retain count */ -- (size_t)retainCount; +- (uint32_t)retainCount; /** * Decreases the retain count. * * Each time an object is released, the retain count gets decreased and the Index: src/OFObject.m ================================================================== --- src/OFObject.m +++ src/OFObject.m @@ -31,13 +31,13 @@ #endif #import "atomic.h" struct pre_ivar { - void **memchunks; - size_t memchunks_size; - size_t retain_count; + void **memchunks; + size_t memchunks_size; + uint32_t retain_count; /* uint32_t because we use 32 bit atomic ops */ }; /* Hopefully no arch needs more than 16 bytes padding */ #define PRE_IVAR_ALIGN ((sizeof(struct pre_ivar) + 15) & ~15) #define PRE_IVAR ((struct pre_ivar*)((char*)self - PRE_IVAR_ALIGN)) @@ -478,11 +478,11 @@ of_atomic_inc32(&PRE_IVAR->retain_count); return self; } -- (size_t)retainCount +- (uint32_t)retainCount { return PRE_IVAR->retain_count; } - (void)release @@ -582,13 +582,13 @@ + autorelease { return self; } -+ (size_t)retainCount ++ (uint32_t)retainCount { - return SIZE_MAX; + return UINT32_MAX; } + (void)release { }