From: Karsten Loesing Date: Fri, 19 Dec 2014 17:37:43 +0000 (+0100) Subject: Fix unit test. X-Git-Tag: tor-0.2.6.2-alpha~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=816e6f2eacca57fc5f9c265b9976510b81e088d2;p=thirdparty%2Ftor.git Fix unit test. Looks like we forgot to update unit tests when we switched from 32-bit to 64-bit ints while tweaking 7cd53b7. --- diff --git a/src/test/test_util.c b/src/test/test_util.c index 6e73ccf51e..d9f2f4f744 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -4663,7 +4663,7 @@ test_util_laplace(void *arg) * array([ -inf, -80.47189562, -34.65735903, 0. , * 34.65735903, 80.47189562, 195.60115027]) */ - tt_assert(LONG_MIN + 20 == + tt_assert(LLONG_MIN + 20 == add_laplace_noise(20, 0.0, delta_f, epsilon)); tt_assert(-60 == add_laplace_noise(20, 0.1, delta_f, epsilon)); tt_assert(-14 == add_laplace_noise(20, 0.25, delta_f, epsilon));