Re: Pointer not really an lvalue?
Re: Pointer not really an lvalue?
- Subject: Re: Pointer not really an lvalue?
- From: "Mark Wagner" <email@hidden>
- Date: Thu, 13 Jul 2006 12:21:58 -0700
On 7/13/06, Greg Guerin <email@hidden> wrote:
Mark Wagner wrote:
>((char *)(block->blockPtr)) += mChunkSize; // <--- Warning here
The type-cast is the "not really an lvalue".
Is there some practical reason that blockPtr isn't declared char* instead
of void*?
It's part of a third-party memory management library. It's never
entirely clear what the developers were thinking, or even if they
*were* thinking -- there are a few places in the code where there are
checks for things like making sure an unsigned int is greater than or
equal to zero, or an unsigned long is less than ULONG_MAX.
--
Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden