[PATCH xserver] squash! sync: Convert from "CARD64" to int64_t.
keithp at keithp.com
Fri Aug 25 01:21:15 UTC 2017
Michel Dänzer <michel at daenzer.net> writes:
> Is assigning an unsigned value with the MSB set to a signed variable
> well-defined in C?
I have no idea. And I just spent a few hours wading through the N1570
draft of the C standard on a related issue. In particular, this is
3 Otherwise, the new type is signed and the value cannot be represented
in it; either the result is implementation-defined or an
implementation-defined signal is raised.
I don't think the absence of a cast matters.
Surely some better language lawyer can tell us the answer...
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 832 bytes
Desc: not available
More information about the xorg-devel