• 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: Signedness of sizeof()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Signedness of sizeof()


  • Subject: Re: Signedness of sizeof()
  • From: Hamish Allan <email@hidden>
  • Date: Wed, 17 Mar 2010 13:15:12 +0000

On Wed, Mar 17, 2010 at 12:28 AM, Clark Cox <email@hidden> wrote:

> No, I don't believe that there is anything that you can do short of
> casting the result of sizeof to a signed type.

On Wed, Mar 17, 2010 at 1:20 AM, Andreas Grosam <email@hidden> wrote:

> I would really change his code, either using size_t for the variables a (and ensuring it doesn't get negative), or doing the explicit int cast. Mixing signed and unsigned ints in operators are potentially error prone.

Thank you both for your advice -- I'll make the changes and contact
the library author.

Best wishes,
Hamish
 _______________________________________________
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

References: 
 >Signedness of sizeof() (From: Hamish Allan <email@hidden>)
 >Re: Signedness of sizeof() (From: Clark Cox <email@hidden>)

  • Prev by Date: Re: subversion: svn copy WC URL fails
  • Next by Date: Re: subversion: svn copy WC URL fails
  • Previous by thread: Re: Signedness of sizeof()
  • Next by thread: Re: Signedness of sizeof()
  • Index(es):
    • Date
    • Thread