diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-08-06 11:42:04 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-08-06 11:42:04 -0400 |
commit | 484b6540480ee4fdbc7a105242c897cca6d9d8eb (patch) | |
tree | 548f6cf83e5fb3fa8f67ccca4c5c3132f0e51217 /src/test/testing_common.c | |
parent | 88f9b123d6d929d2f783ba7823b7c289c09d83e0 (diff) | |
download | tor-484b6540480ee4fdbc7a105242c897cca6d9d8eb.tar.gz tor-484b6540480ee4fdbc7a105242c897cca6d9d8eb.zip |
test_token_bucket: negate after casting to signed type.
Previously we tried multiplying by -1 before casting to int32_t,
which would cause us to cast the -1 to an unsigned before we
multiplied. This gave us compiler warnings on windows.
Fixes bug 31353; bug not in any released Tor.
Diffstat (limited to 'src/test/testing_common.c')
0 files changed, 0 insertions, 0 deletions