Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200624232008.4093-1-daniel.santos@pobox.com>
Date: Wed, 24 Jun 2020 18:20:08 -0500
From: Daniel Santos <daniel.santos@...ox.com>
To: musl@...ts.openwall.com
Cc: daniel@...t.us,
	Daniel Santos <daniel.santos@...ox.com>
Subject: [PATCH] Fix signed compare warning

Signed-off-by: Daniel Santos <daniel.santos@...ox.com>
---
 src/thread/__timedwait.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/thread/__timedwait.c b/src/thread/__timedwait.c
index 666093be..9829b93e 100644
--- a/src/thread/__timedwait.c
+++ b/src/thread/__timedwait.c
@@ -38,7 +38,7 @@ int __timedwait_cp(volatile int *addr, int val,
 	if (priv) priv = FUTEX_PRIVATE;
 
 	if (at) {
-		if (at->tv_nsec >= 1000000000UL) return EINVAL;
+		if ((unsigned long)at->tv_nsec >= 1000000000UL) return EINVAL;
 		if (__clock_gettime(clk, &to)) return EINVAL;
 		to.tv_sec = at->tv_sec - to.tv_sec;
 		if ((to.tv_nsec = at->tv_nsec - to.tv_nsec) < 0) {
-- 
2.24.1

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.