Fix compilation error(signed/unsigned comparison).