On Thu, Nov 13, 2008 at 4:46 PM, Daniel Hyde <[EMAIL PROTECTED]> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to