]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1325: assertion failed: StatHist.c:93 ((int) floor(0.99L +
authorserassio <>
Sat, 3 Sep 2005 18:33:32 +0000 (18:33 +0000)
committerserassio <>
Sat, 3 Sep 2005 18:33:32 +0000 (18:33 +0000)
statHistVal(H, 0) - min)) == 0

Forward port of 2.5 patch.

src/StatHist.cc

index b700c6e911ede37ef8fe2eb4353638959dad86b6..75857df2421a81992387e10e156a16e939a05bf5 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: StatHist.cc,v 1.31 2003/10/16 13:14:49 robertc Exp $
+ * $Id: StatHist.cc,v 1.32 2005/09/03 12:33:32 serassio Exp $
  *
  * DEBUG: section 62    Generic Histogram
  * AUTHOR: Duane Wessels
@@ -91,7 +91,7 @@ statHistInit(StatHist * H, int capacity, hbase_f * val_in, hbase_f * val_out, do
     /* a max value should go into the last bin */
     assert(statHistBin(H, max) == H->capacity - 1);
     /* it is hard to test val_out, here is a crude test */
-    assert(((int) floor(0.99L + statHistVal(H, 0) - min)) == 0);
+    assert(((int) floor(0.99 + statHistVal(H, 0) - min)) == 0);
 }
 
 void