Skip to content

Commit 671d204

Browse files
committed
Fix a signed overflow warning in test_timeouts.c
Technically, when int is 32-bit, 1<<31 is an overflow.
1 parent e5a9e8b commit 671d204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-timeout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ main(int argc, char **argv)
433433
.start_at = 100,
434434
.end_at = ((uint64_t)1) << 49,
435435
.n_timeouts = 1000,
436-
.max_step = 1<<31,
436+
.max_step = ((uint64_t)1) << 31,
437437
.relative = 0,
438438
.try_removing = 0,
439439
.finalize = 2,

0 commit comments

Comments
 (0)