Re: fshort-wchar
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