[tor-commits] [tor/release-0.3.1] Add a cast to avoid a signed/unsigned comparison