FreeBSD Bugzilla – Attachment 10598 Details for
Bug 21204
bit_ffc and bit_ffs macros in bitstring.h test 1 byte too many.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1002 bytes, created by
bob
on 2000-09-11 16:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
bob
Created:
2000-09-11 16:50:01 UTC
Size:
1002 bytes
patch
obsolete
>--- /usr/include/bitstring.h Mon Feb 21 08:13:54 2000 >+++ gpxbitstring.h Sat Sep 9 08:44:25 2000 >@@ -115,7 +115,7 @@ > register bitstr_t *_name = name; \ > register int _byte, _nbits = nbits; \ > register int _stopbyte = _bit_byte(_nbits), _value = -1; \ >- for (_byte = 0; _byte <= _stopbyte; ++_byte) \ >+ for (_byte = 0; _byte < _stopbyte; ++_byte) \ > if (_name[_byte] != 0xff) { \ > _value = _byte << 3; \ > for (_stopbyte = _name[_byte]; (_stopbyte&0x1); \ >@@ -130,7 +130,7 @@ > register bitstr_t *_name = name; \ > register int _byte, _nbits = nbits; \ > register int _stopbyte = _bit_byte(_nbits), _value = -1; \ >- for (_byte = 0; _byte <= _stopbyte; ++_byte) \ >+ for (_byte = 0; _byte < _stopbyte; ++_byte) \ > if (_name[_byte]) { \ > _value = _byte << 3; \ > for (_stopbyte = _name[_byte]; !(_stopbyte&0x1); \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 21204
: 10598