• 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: Pointer not really an lvalue?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Pointer not really an lvalue?
  • Next by Date: Re: Pointer not really an lvalue?
  • Previous by thread: Re: Pointer not really an lvalue?
  • Next by thread: Install_name_tool help
  • Index(es):
    • Date
    • Thread