[PATCH xserver] squash! sync: Convert from "CARD64" to int64_t.
Keith Packard
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
worrying:
6.3.1.3
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...
--
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20170824/bf6dca70/attachment.sig>
More information about the xorg-devel
mailing list