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!