fix warning: signed/unsigned comparison