hxstream-ivory: fixed small overflow bug in decode.