• 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: fshort-wchar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fshort-wchar


  • Subject: Re: fshort-wchar
  • From: Anders Markussen <email@hidden>
  • Date: Mon, 16 Apr 2012 10:05:13 +0200

On Apr 16, 2012, at 3:33 AM, Ron Hunsinger wrote:

> You're missing a level of indirection.
>
>>       const wchar_t *a=(const wchar_t *)ap, *b=(const wchar_t *)bp;
> should be
>           const wchar_t *a=*(const wchar_t * const*)ap, *b=*(const wchar_t * const*)bp;

Of course, I was too quick in typing up that, but that doesn't answer my question.

On Apr 16, 2012, at 3:33 AM, Ron Hunsinger wrote:

>>       return *a-*b;
>

Why is this calculation unsigned? I.e. if *a is less than *b, why do I get a positive result? GCC gives the result I want.

- Anders


 _______________________________________________
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

  • Follow-Ups:
    • Re: fshort-wchar
      • From: Andreas Grosam <email@hidden>
References: 
 >fshort-wchar (From: Anders Markussen <email@hidden>)
 >Re: fshort-wchar (From: Ron Hunsinger <email@hidden>)

  • Prev by Date: Re: fshort-wchar
  • Next by Date: Re: fshort-wchar
  • Previous by thread: Re: fshort-wchar
  • Next by thread: Re: fshort-wchar
  • Index(es):
    • Date
    • Thread