You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a combination of # of elements, # of bits, and underlying datatype cross boundaries, the array will fail to properly contain the last element.
for example, if you set the number of bits to 10, and use 7 elements(using a uint64_t datatype), this requires 70 total bits, which is not a multiple or factor of 64, Bit array is not smart enough to use the last 4 bits of the previous uint64_t element, so if you set the last element to 1024, only the last 6 bits will be set, since it is unable to set the previous 4 bits in the previous uint64_t. For now, just disallowing bit sizes that are not factors of the datatype.
The text was updated successfully, but these errors were encountered:
If a combination of # of elements, # of bits, and underlying datatype cross boundaries, the array will fail to properly contain the last element.
for example, if you set the number of bits to 10, and use 7 elements(using a uint64_t datatype), this requires 70 total bits, which is not a multiple or factor of 64, Bit array is not smart enough to use the last 4 bits of the previous uint64_t element, so if you set the last element to 1024, only the last 6 bits will be set, since it is unable to set the previous 4 bits in the previous uint64_t. For now, just disallowing bit sizes that are not factors of the datatype.
The text was updated successfully, but these errors were encountered: