Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102194191
D34122.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
407 B
Referenced Files
None
Subscribers
None
D34122.diff
View Options
diff --git a/sys/sys/bitstring.h b/sys/sys/bitstring.h
--- a/sys/sys/bitstring.h
+++ b/sys/sys/bitstring.h
@@ -304,7 +304,7 @@
}
_mask = _match ? _BITSTR_MASK : 0;
- _maxshft = _bit_idx(_size - 1) == 0 ? _size : _BITSTR_BITS;
+ _maxshft = _bit_idx(_size - 1) == 0 ? _size : (int)_BITSTR_BITS;
_value = 0;
_curbitstr = _bitstr + _bit_idx(_start);
_test = ~(_BITSTR_MASK << _bit_offset(_start));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 9, 7:04 PM (21 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14564528
Default Alt Text
D34122.diff (407 B)
Attached To
Mode
D34122: <sys/bitstring.h>: Cast _BITSTR_BITS to int in a ternary operator.
Attached
Detach File
Event Timeline
Log In to Comment