Use id casts instead of void * casts. Suggested by thorpej.
This commit is contained in:
parent
958e368bed
commit
1e88acc412
2
gnu/dist/gcc4/libobjc/Object.m
vendored
2
gnu/dist/gcc4/libobjc/Object.m
vendored
@ -121,7 +121,7 @@ extern int errno;
|
||||
return 0;
|
||||
// Ordering objects by their address is pretty useless,
|
||||
// so subclasses should override this is some useful way.
|
||||
else if ((void *)self > (void *)anotherObject)
|
||||
else if ((id)self > (id)anotherObject)
|
||||
return 1;
|
||||
else
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user