git: 5bb908625468 - stable/12 - Fix GCC build.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Mar 2023 22:28:37 UTC
The branch stable/12 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=5bb908625468bfa3b0c49722de2412e009d38bff commit 5bb908625468bfa3b0c49722de2412e009d38bff Author: Li-Wen Hsu <lwhsu@FreeBSD.org> AuthorDate: 2020-02-13 19:05:19 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-03-22 19:22:25 +0000 Fix GCC build. Sponsored by: The FreeBSD Foundation (cherry picked from commit 338450436d9d691a18fb94373c58e91aa3fcb374) --- tests/sys/net/randsleep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/net/randsleep.c b/tests/sys/net/randsleep.c index a602d06921e7..8bbad5b7557d 100644 --- a/tests/sys/net/randsleep.c +++ b/tests/sys/net/randsleep.c @@ -37,7 +37,7 @@ #include <stdlib.h> #include <unistd.h> -#define RANDOM_MAX ((1<<31) - 1) +#define RANDOM_MAX (((long)1<<31) - 1) int main(int argc, char** argv){ useconds_t max_usecs, usecs;