Fix compilation warning
Drop a magic number
Make incremental decoding types clearer
Fix tiny typos

--HG--
extra : amend_source : f375f8fb175dc833ebf8e8da5c3e85ef65c189fb