Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 2023 22:28:37 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 5bb908625468 - stable/12 - Fix GCC build.
Message-ID:  <202303222228.32MMSbA6001804@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303222228.32MMSbA6001804>