]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix unit test.
authorKarsten Loesing <karsten.loesing@gmx.net>
Fri, 19 Dec 2014 17:37:43 +0000 (18:37 +0100)
committerKarsten Loesing <karsten.loesing@gmx.net>
Fri, 19 Dec 2014 17:37:43 +0000 (18:37 +0100)
Looks like we forgot to update unit tests when we switched from 32-bit to
64-bit ints while tweaking 7cd53b7.

src/test/test_util.c

index 6e73ccf51e435eb92b81c21cdf0993bcf4b19196..d9f2f4f7442d88adab5237cc907046e1319f15fc 100644 (file)
@@ -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));