fix warning "unsigned/signed compared"