[PATCH] support: Add TEST_COMPARE macro
Florian Weimer
fweimer@redhat.com
Thu Nov 23 11:57:00 GMT 2017
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. It's just that C requires
conversion to unsigned long long before making the comparison, so the
difference is obscured.
I think this matters for writing portable tests, where some expression
might be signed on one architecture, and unsigned on another.
Thanks,
Florian
More information about the Libc-alpha
mailing list