Thread (2 messages) flat view 2 messages, 2 authors, 2025-09-18

RE: [Change] Git build issue on NonStop

From: <hidden>
Date: 2025-09-18 15:20:27

On September 18, 2025 10:48 AM, Junio C Hamano wrote:
Patrick Steinhardt [off-list ref] writes:
quoted
One thing I missed: `uintmax_t` doesn't work on 32 bit systems:

    ::error file=clar.c,line=879::clar.c:879:8: cast from pointer to
integer of different
size [-Werror=pointer-to-int-cast]
quoted
      879 |        (uintmax_t)p1, (uintmax_t)p2);
          |        ^

I'm inclined to just use "%p" instead and accept that this has
platform-dependent behaviour. Means we'll have to drop the test for
this, but that's the lesser evil from my point of view.
As long as %p works everywhere and with stable output, that is the most
appropriate solution, I would think.  After all, this is used only for
"oops, the test
expects these two pointers are pointing at the same address, but they
differ; they
point at these places...".

To test such a test, wouldn't it be sufficient to perform "does it give a
bit of output
or not?" check in isolation?
Surprisingly, this actually works on NonStop x86 in both memory models
despite
warnings to the contrary in their man page.. Thanks :)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help