[tor-commits] [tor/master] Fix unit test.
nickm at torproject.org
nickm at torproject.org
Fri Dec 19 19:12:41 UTC 2014
commit 816e6f2eacca57fc5f9c265b9976510b81e088d2
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Fri Dec 19 18:37:43 2014 +0100
Fix unit test.
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/test_util.c b/src/test/test_util.c
index 6e73ccf..d9f2f4f 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));
More information about the tor-commits
mailing list