diff --git a/Source/NSConcretePointerFunctions.h b/Source/NSConcretePointerFunctions.h index 4d7be30a7..edad36da6 100644 --- a/Source/NSConcretePointerFunctions.h +++ b/Source/NSConcretePointerFunctions.h @@ -51,8 +51,8 @@ # else # define WEAK_WRITE(addr, x) (*(addr) = x) # endif -# define STRONG_WRITE(addr, x) ASSIGN(*(addr), x) -# define STRONG_ACQUIRE(x) RETAIN(x) +# define STRONG_WRITE(addr, x) ASSIGN(*((id*)addr), ((id)x)) +# define STRONG_ACQUIRE(x) RETAIN(((id)x)) #endif