summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2014-12-19 18:37:43 +0100
committerKarsten Loesing <karsten.loesing@gmx.net>2014-12-19 18:37:43 +0100
commit816e6f2eacca57fc5f9c265b9976510b81e088d2 (patch)
tree80ccc5d9e104807232db8e2a4c32a630af35e5aa /src
parent64787e99faa794463e2e9a162340aa457018d321 (diff)
downloadtor-816e6f2eacca57fc5f9c265b9976510b81e088d2.tar.gz
tor-816e6f2eacca57fc5f9c265b9976510b81e088d2.zip
Fix unit test.
Looks like we forgot to update unit tests when we switched from 32-bit to 64-bit ints while tweaking 7cd53b7.
Diffstat (limited to 'src')
-rw-r--r--src/test/test_util.c2
1 files changed, 1 insertions, 1 deletions
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));