Explorar el Código

Fix a signed/unsigned comparison warning in scheduler_run

Nick Mathewson hace 9 años
padre
commit
430f5852ac
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/or/scheduler.c

+ 1 - 1
src/or/scheduler.c

@@ -418,7 +418,7 @@ scheduler_run, (void))
           flushed_this_time =
             channel_flush_some_cells(chan,
                                      MIN(sched_max_flush_cells,
-                                         n_cells - flushed));
+                                         (size_t) n_cells - flushed));
           if (flushed_this_time <= 0) break;
           flushed += flushed_this_time;
         }