Closed rikyoz closed 4 years ago
Thank you very much for the contribution and sorry for being a bit slow for processing it! ;)
Thank you very much for the contribution and sorry for being a bit slow for processing it! ;)
No problem, you are welcome. Thanks for accepting it! ;)
Hi! First, thank you for this useful project! I've had some issues in using ApiVectors when having particular lengths, and I think it's due to an error in the zero-padding of vectors. Specifically, ApiVectors whose length is an odd power of 2 (e.g., 211=2048) require padding of 4 zeros instead of 2 (as it currently happens); if not, the length of the padded vector is not a multiple of 6, and an exception like the following is raised:
This pull request addresses the issue by correcting the size of the padding added in the
compress
function and removed indecompress
/n_decompress
functions.