xdiff tail trimming: use correct type.