Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F172483871
D22682.id65238.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
885 B
Referenced Files
None
Subscribers
None
D22682.id65238.diff
View Options
Index: sys/sys/bitstring.h
===================================================================
--- sys/sys/bitstring.h
+++ sys/sys/bitstring.h
@@ -306,7 +306,7 @@
while ((_test & (_test + 1)) != 0 && _b-- > 0)
_test |= _test >> (((_size - 1) >> _b) + 1) / 2;
/* Find the start of the first 0-area in _test. */
- _offset = (~_test == 0) ? _BITSTR_BITS :
+ _offset = (~_test == 0) ? (int)_BITSTR_BITS :
ffsl(~_test) - 1;
_value = (_curbitstr - _bitstr) * _BITSTR_BITS +
_offset;
@@ -353,7 +353,7 @@
while ((_test & (_test + 1)) != 0 && _b-- > 0)
_test |= _test >> (((_size - 1) >> _b) + 1) / 2;
/* Find the start of the first 0-area in _test. */
- _offset = (~_test == 0) ? _BITSTR_BITS :
+ _offset = (~_test == 0) ? (int)_BITSTR_BITS :
ffsl(~_test) - 1;
_value = (_curbitstr - _bitstr) * _BITSTR_BITS +
_offset;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Sep 19, 7:07 PM (4 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39243648
Default Alt Text
D22682.id65238.diff (885 B)
Attached To
Mode
D22682: bistring: avoid gcc -Wsign-compare
Attached
Detach File
Event Timeline
Log In to Comment