diff --git a/src/or/dirvote.c b/src/or/dirvote.c index 2bc30231b3..e46e18e8f4 100644 --- a/src/or/dirvote.c +++ b/src/or/dirvote.c @@ -121,7 +121,7 @@ median_int(smartlist_t *ints) tor_assert(smartlist_len(ints)); smartlist_sort(ints, _compare_ints); idx = (smartlist_len(ints)-1)/2; - return *(time_t*)smartlist_get(ints, idx); + return *(int*)smartlist_get(ints, idx); } /** Given a vote vote (not a consensus!), return its associated