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.
Log in to post a comment.