Procházet zdrojové kódy

r11621@catbus: nickm | 2007-02-01 13:09:18 -0500
Fix another VC compiler warning.


svn:r9473

Nick Mathewson před 17 roky
rodič
revize
6f2a92c5b3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/or/routerlist.c

+ 1 - 1
src/or/routerlist.c

@@ -971,7 +971,7 @@ smartlist_choose_by_bandwidth(smartlist_t *sl, int for_exit, int statuses)
         if (!i) /* no hints; _really_ guess */
           this_bw = status->is_fast ? 40000 : 20000;
         else /* assume it'll be the average we've seen so far */
-          this_bw = partial/i;
+          this_bw = (uint32_t)(partial/i);
       }
     } else {
       router = smartlist_get(sl, i);