From 9e266f6cbc37bb1cfaeb27c0105ceffd7cb3943e Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 27 Jul 2007 01:59:48 +0000 Subject: [PATCH] tweak r2510 misassertion reported by Lacrocivious --- libtransmission/completion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/completion.c b/libtransmission/completion.c index cddaa2496..cdbf1ed93 100644 --- a/libtransmission/completion.c +++ b/libtransmission/completion.c @@ -296,7 +296,7 @@ tr_cpDoneStats( const tr_completion_t * cp , have -= ( tor->blockSize - ( info->totalSize % tor->blockSize ) ); } - assert( have < total ); + assert( have <= total ); assert( total <= info->totalSize ); *setmeHaveBytes = have;