diff-delta: fix encoding size that would not fit in "unsigned int"