mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
sys: declare bit sets unsigned
Substantially reduce the number of signed/unsigned issues (warnings if enabled). While these are presently disabled for FreeBSD, being able to enable another warning would be good. Differential Revision: https://reviews.freebsd.org/D32793 Reviewed by: imp, jhibbits Pull Request: https://github.com/freebsd/freebsd-src/pull/1126
This commit is contained in:
parent
9f3a552f9e
commit
99adf661ab
|
@ -36,7 +36,7 @@
|
|||
* Macros addressing word and bit within it, tuned to make compiler
|
||||
* optimize cases when SETSIZE fits into single machine word.
|
||||
*/
|
||||
#define _BITSET_BITS (sizeof(long) * 8)
|
||||
#define _BITSET_BITS (sizeof(unsigned long) * 8)
|
||||
|
||||
#define __howmany(x, y) (((x) + ((y) - 1)) / (y))
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
|||
|
||||
#define __BITSET_DEFINE(_t, _s) \
|
||||
struct _t { \
|
||||
long __bits[__bitset_words((_s))]; \
|
||||
unsigned long __bits[__bitset_words((_s))]; \
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue