pinyin/segmentor.h: fix comparision operator

this patch also kills a bunch of sign-compare warnings.

let me know if any concerns. i will keep the PR lingering around for couple days before merging it.

thanks,