ASF Bugzilla – Attachment 27233 Details for
Bug 51458
sign extension may cause error in BitField
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
use cycle right shifting instead of just right shifting
bitfield.patch (text/plain), 403 bytes, created by
jingqi
on 2011-07-01 09:54:57 UTC
(
hide
)
Description:
use cycle right shifting instead of just right shifting
Filename:
MIME Type:
Creator:
jingqi
Created:
2011-07-01 09:54:57 UTC
Size:
403 bytes
patch
obsolete
>Index: BitField.java >=================================================================== >--- BitField.java (revision 1141886) >+++ BitField.java (working copy) >@@ -71,7 +71,8 @@ > > public int getValue(final int holder) > { >- return getRawValue(holder) >> _shift_count; >+ // JQ: cover the high bits with low zero bits >+ return getRawValue(holder) >>> _shift_count; > } > > /**
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 51458
: 27233