[or-cvs] r10949: Fix median_int for platforms where sizeof(int)!=sizeof(time_ (in tor/trunk: . src/or)
nickm at seul.org
nickm at seul.org
Fri Jul 27 20:09:38 UTC 2007
Author: nickm
Date: 2007-07-27 16:09:37 -0400 (Fri, 27 Jul 2007)
New Revision: 10949
Modified:
tor/trunk/
tor/trunk/src/or/dirvote.c
Log:
r13946 at catbus: nickm | 2007-07-27 16:09:31 -0400
Fix median_int for platforms where sizeof(int)!=sizeof(time_t)
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r13946] on 8246c3cf-6607-4228-993b-4d95d33730f1
Modified: tor/trunk/src/or/dirvote.c
===================================================================
--- tor/trunk/src/or/dirvote.c 2007-07-27 19:53:29 UTC (rev 10948)
+++ tor/trunk/src/or/dirvote.c 2007-07-27 20:09:37 UTC (rev 10949)
@@ -121,7 +121,7 @@
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
More information about the tor-commits
mailing list