This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] support: Add TEST_COMPARE macro


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]