• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mysterious warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Mysterious warning (From: Graham Cox <email@hidden>)
 >Re: Mysterious warning (From: "Chris Suter" <email@hidden>)

  • Prev by Date: Re: Thread programming
  • Next by Date: Re: Setting up a main menu in a NIB(XIB)?
  • Previous by thread: Re: Mysterious warning
  • Next by thread: Re: Mysterious warning
  • Index(es):
    • Date
    • Thread