Open chhu opened 1 year ago
This is more a question: How can you guarantee that this index to stateTable cannot become negative?
https://github.com/Cyan4973/FiniteStateEntropy/blob/7149fa45ec69f54a709e5260e6a0eeb27e710ee0/lib/fse.h#L520
Thanks!
I've gotten segfaults here as well, usually when using more than 128 symbols.
I changed the code to check for out of range index and throw an exception.
This is more a question: How can you guarantee that this index to stateTable cannot become negative?
https://github.com/Cyan4973/FiniteStateEntropy/blob/7149fa45ec69f54a709e5260e6a0eeb27e710ee0/lib/fse.h#L520
Thanks!