index-pack: fix truncation of off_t in comparison