aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-08-19 18:04:35 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2019-08-19 18:04:35 +0300
commitdfc8c0b536aedc47f965efd47f180aaf6f5023e1 (patch)
tree265a11cf74d1f2b5c6da069d58de968cfeee2f98 /src
parent19e19c1fa8d138b36b115a6cf5e1993df08c3df3 (diff)
parent484b6540480ee4fdbc7a105242c897cca6d9d8eb (diff)
downloadtor-dfc8c0b536aedc47f965efd47f180aaf6f5023e1.tar.gz
tor-dfc8c0b536aedc47f965efd47f180aaf6f5023e1.zip
Merge branch 'tor-github/pr/1214'
Diffstat (limited to 'src')
-rw-r--r--src/test/test_token_bucket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_token_bucket.c b/src/test/test_token_bucket.c
index d3ce591388..31670718d9 100644
--- a/src/test/test_token_bucket.c
+++ b/src/test/test_token_bucket.c
@@ -93,7 +93,7 @@ test_token_bucket_ctr_dec(void *arg)
/* Keep underflowing shouldn't flag the bucket as empty. */
tt_uint_op(false, OP_EQ, token_bucket_ctr_dec(&tb, BURST));
- tt_int_op(tb.counter.bucket, OP_EQ, (int32_t) ((BURST + 1) * -1));
+ tt_int_op(tb.counter.bucket, OP_EQ, - (int32_t) (BURST + 1));
done:
;