mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Add a note about _compare_int not doing overflow right
This commit is contained in:
parent
57a86fd433
commit
93a6d53ef3
@ -1982,7 +1982,9 @@ rep_hist_exit_stats_term(void)
|
||||
tor_free(exit_streams);
|
||||
}
|
||||
|
||||
/** Helper for qsort: compare two ints. */
|
||||
/** Helper for qsort: compare two ints. Does not handle overflow properly,
|
||||
* but works fine for sorting an array of port numbers, which is what we use
|
||||
* it for. */
|
||||
static int
|
||||
_compare_int(const void *x, const void *y)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user