summaryrefslogtreecommitdiff
path: root/src/or/dirvote.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-07-27 20:09:37 +0000
committerNick Mathewson <nickm@torproject.org>2007-07-27 20:09:37 +0000
commit0e5d8925d93eaa7d04f05a4c99505d9420279208 (patch)
treef1b4eb41537d7f07989b302096133d3c77bcff1b /src/or/dirvote.c
parenta5477c7bb9a9ae43bcdea6cdcf4a3335a78c3810 (diff)
downloadtor-0e5d8925d93eaa7d04f05a4c99505d9420279208.tar.gz
tor-0e5d8925d93eaa7d04f05a4c99505d9420279208.zip
r13946@catbus: nickm | 2007-07-27 16:09:31 -0400
Fix median_int for platforms where sizeof(int)!=sizeof(time_t) svn:r10949
Diffstat (limited to 'src/or/dirvote.c')
-rw-r--r--src/or/dirvote.c2
1 files changed, 1 insertions, 1 deletions
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 <b>vote</b> (not a consensus!), return its associated