diff options
| author | Nick Mathewson <[email protected]> | 2016-05-12 14:45:30 -0400 |
|---|---|---|
| committer | Nick Mathewson <[email protected]> | 2016-05-12 14:45:30 -0400 |
| commit | 671d204671ca66bc0b34c4a6338a02d837061595 (patch) | |
| tree | 591d39da85585ba80e4f5514115b836cd5b4e9b6 | |
| parent | e5a9e8bfaa9c631bdc54002181795931b65bdc1a (diff) | |
Fix a signed overflow warning in test_timeouts.c
Technically, when int is 32-bit, 1<<31 is an overflow.
| -rw-r--r-- | test-timeout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test-timeout.c b/test-timeout.c index 8077129..ab9f72d 100644 --- a/test-timeout.c +++ b/test-timeout.c @@ -433,7 +433,7 @@ main(int argc, char **argv) .start_at = 100, .end_at = ((uint64_t)1) << 49, .n_timeouts = 1000, - .max_step = 1<<31, + .max_step = ((uint64_t)1) << 31, .relative = 0, .try_removing = 0, .finalize = 2, |
