Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147958581
D32793.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
606 B
Referenced Files
None
Subscribers
None
D32793.diff
View Options
diff --git a/sys/sys/_bitset.h b/sys/sys/_bitset.h
--- a/sys/sys/_bitset.h
+++ b/sys/sys/_bitset.h
@@ -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))]; \
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 15, 9:49 PM (11 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29736628
Default Alt Text
D32793.diff (606 B)
Attached To
Mode
D32793: sys: declare bit sets unsigned
Attached
Detach File
Event Timeline
Log In to Comment