-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've confirmed that the attached patch fixes this bug and renders squid
reliable on my system. See notes in previous postings.
Steve
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCsoyi4nWub/+PLZsRAtSuAJoDkOF+rG8dr9TMcMV2V7wrrE/ZJQCgjojb
4TPkA/fsXrL+TPV/s09+cXI=
=s5FC
-----END PGP SIGNATURE-----
--- squid_2.5.9.orig/src/StatHist.c 2001-10-24 21:19:08.000000000 +1300
+++ squid-2.5.9/src/StatHist.c 2005-06-07 08:46:26.000000000 +1200
@@ -90,7 +90,7 @@
/* 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.99f + statHistVal(H, 0) - min)) == 0);
}
void