Menu

#152 GetObjectLength returned incorrect Length

open
nobody
PWLib (63)
5
2008-05-23
2008-05-23
Anonymous
No

In the CountBits method of asner.cxx file, The following comparison
range > (unsigned)(1 << nBits)

Must be changed to
range >= (unsigned)(1 << nBits)

Otherwise for length of 256 for example it returns 8 bits. We need 9 bits required for 256.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB