Possible fix to state-load bug reported by weasel.

svn:r5692
This commit is contained in:
Nick Mathewson 2006-01-02 00:42:19 +00:00
parent 0da2069643
commit 4868d77ab8

View File

@ -469,7 +469,7 @@ advance_obs(bw_array_t *b)
/** Add 'n' bytes to the number of bytes in b for second 'when'. /** Add 'n' bytes to the number of bytes in b for second 'when'.
*/ */
static INLINE void static INLINE void
add_obs(bw_array_t *b, time_t when, int n) add_obs(bw_array_t *b, time_t when, uint64_t n)
{ {
/* Don't record data in the past. */ /* Don't record data in the past. */
if (when<b->cur_obs_time) if (when<b->cur_obs_time)