Re: Mysterious warning
Re: Mysterious warning
- Subject: Re: Mysterious warning
- From: "Chris Suter" <email@hidden>
- Date: Thu, 13 Nov 2008 17:18:45 +1100
On Thu, Nov 13, 2008 at 4:46 PM, Daniel Hyde <email@hidden> wrote:
>> The order of evaluation of the arguments to a function is undefined so
>> you have a problem where you're taking the address of wptr and you're
>> pre-decrementing it.
>
> That doesn't look problematic to me -- decrementing a char* will
> change the char*'s value, not its address -- ie it will change the
> address the pointer points to, not the address at which the pointer
> itself exists at, which is what the & returns.
You're right about that. I didn't look at it closely enough.
Nevertheless, I believe that's what the compiler was getting at
(albeit erroneously).
-- Chris
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden