changeset 4973:61580c15b4fb draft

Linux: Silence a warning on 32-bit Linux
author Roy Marples <roy@marples.name>
date Fri, 17 Jan 2020 12:58:28 +0000
parents c38657775fb4
children 1c75ddb407bf
files src/eloop.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/eloop.c	Thu Jan 16 21:56:35 2020 +0000
+++ b/src/eloop.c	Fri Jan 17 12:58:28 2020 +0000
@@ -642,7 +642,7 @@
     const struct timespec *when, void (*callback)(void *), void *arg)
 {
 
-	if (when->tv_sec < 0 || when->tv_sec > UINT_MAX) {
+	if (when->tv_sec < 0 || (unsigned long)when->tv_sec > UINT_MAX) {
 		errno = EINVAL;
 		return -1;
 	}