Fix #966 USAN: implicit signed integer truncation in TCX harm model arithmetic coder See merge request !1360
mentioned in issue #990