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