misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
commit4cbf380ce948ca15a965a78f0c1a092cf5956792
authorFlorian Weimer <fweimer@redhat.com>
Tue, 25 Feb 2014 13:56:10 +0000 (25 14:56 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 25 Feb 2014 13:56:10 +0000 (25 14:56 +0100)
tree44f72a303346dff92c2051269b3dad3bbd4a7160
parent80a56cc3ee45d4a2a1c3ec5e67ff359a7b380fb6
misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.

Shifting into the sign position is currently supported as a GCC
extension, but explicitly subjected to future changes.  Computation
in the unsigned type followed by a cast to the signed type is a GCC
extension that will be available forever.
ChangeLog
NEWS
misc/sys/select.h