This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] support: Add TEST_COMPARE macro
On Nov 23 2017, Florian Weimer <fweimer@redhat.com> wrote:
> On 11/23/2017 12:49 PM, Andreas Schwab wrote:
>> On Nov 23 2017, Florian Weimer <fweimer@redhat.com> wrote:
>>
>>> for me, although mathematically, the values are different.
>>
>> Are they?
>
> Taken by themselves, they most certainly are.
Both are -1.
> I think this matters for writing portable tests, where some expression
> might be signed on one architecture, and unsigned on another.
Comparing two different domains is always going to be surprising.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."