Thread (18 messages) 18 messages, 5 authors, 2024-06-13

Re: termios constants should be unsigned

From: Zack Weinberg <hidden>
Date: 2024-06-13 12:32:24
Also in: linux-man

On Wed, Jun 12, 2024, at 10:55 AM, Paul Eggert wrote:
A lot of this stuff is pedanticism that dates back to the bad old days
when the C standard allowed ones' complement and signed magnitude
representations of signed integers. Although it can be amusing to
worry about that possibility (I know I've done it) it's never been a
practical worry, and even the motivation of pedanticism is going away
now that C23 requires two's complement.
Unless C23 eliminated *all* the cases where an operation on unsigned
integers is well-defined but the same operation on signed integers is
undefined, and last I checked it had not, there is still a need for
caution around conversions that change signedness.

zw
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help